Skip to content

Commit

Permalink
What is this message?
Browse files Browse the repository at this point in the history
  • Loading branch information
LittleMengBot committed Dec 30, 2021
1 parent ea9cced commit 6f7ed54
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions src/main/kotlin/command/rawtext/WhatCommand.kt
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,15 @@ import dsl.replyToText

fun whatCommand(bot: Bot, update: Update) {
val message = update.message!!
if (message.text != null) {
update.message!!.replyToText(
bot,
update,
update.message!!.text!!,
deleteButton(update.message!!.messageId),
ParseMode.MARKDOWN
)
if (message.replyToMessage != null) {
if (message.replyToMessage!!.text != null) {
update.message!!.replyToText(
bot,
update,
message.replyToMessage!!.text!!,
deleteButton(update.message!!.messageId),
ParseMode.MARKDOWN
)
}else return
}else return
}

0 comments on commit 6f7ed54

Please sign in to comment.