We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2d1b1fa + b20bc3d commit b215cc1Copy full SHA for b215cc1
main.go
@@ -123,6 +123,10 @@ func main() {
123
124
if update.Message.ReplyToMessage != nil {
125
msg.ReplyToMessageID = update.Message.ReplyToMessage.MessageID
126
+
127
+ if update.Message.ReplyToMessage.From != nil && update.Message.ReplyToMessage.From.UserName != "" {
128
+ msg.Text = "@" + update.Message.ReplyToMessage.From.UserName + " " + msg.Text
129
+ }
130
}
131
132
_, err = bot.Send(msg)
0 commit comments