diff options
author | Bohdan Horbeshko <bodqhrohro@gmail.com> | 2024-01-25 02:54:25 +0300 |
---|---|---|
committer | Bohdan Horbeshko <bodqhrohro@gmail.com> | 2024-01-25 02:54:25 +0300 |
commit | b9b6ba14a442f3c4394c535461bd6b1d03a7ef7b (patch) | |
tree | cfba07221257597d740619081c197fbe5814ac06 /telegram/utils.go | |
parent | b40ccf4a4d1391ba1f67a159697fea859e2a92fd (diff) |
Fix stuck logout
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 |