diff options
Diffstat (limited to 'telegram/utils.go')
-rw-r--r-- | telegram/utils.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/telegram/utils.go b/telegram/utils.go index f0316f2..3f15488 100644 --- a/telegram/utils.go +++ b/telegram/utils.go @@ -362,10 +362,10 @@ func (c *Client) getMessageReply(message *client.Message, preview bool, noConten if message.ReplyTo != nil && message.ReplyTo.MessageReplyToType() == client.TypeMessageReplyToMessage { replyTo, _ := message.ReplyTo.(*client.MessageReplyToMessage) var text string - if replyTo.Quote != nil && !noContent { + if replyTo.Quote != nil && replyTo.Quote.Text != nil && !noContent { text = formatter.Format( - replyTo.Quote.Text, - replyTo.Quote.Entities, + replyTo.Quote.Text.Text, + replyTo.Quote.Text.Entities, c.getFormatter(), ) // make the whole quote fit one line |