From f372e513ef9ecaf3d9c0a71bad25ab1338da0384 Mon Sep 17 00:00:00 2001 From: annelin Date: Tue, 19 May 2020 17:42:27 +0300 Subject: [PATCH] Release 2.6.3 - Replies fix --- inc/telegramclient.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/telegramclient.rb b/inc/telegramclient.rb index 18aab5c..d31bbf2 100644 --- a/inc/telegramclient.rb +++ b/inc/telegramclient.rb @@ -362,7 +362,7 @@ class TelegramClient str = "%s | %s | " % [message.id, self.format_contact(message.sender_user_id)] # add messageid and sender str += DateTime.strptime((message.date+Time.now.getlocal(@session[:timezone]).utc_offset).to_s,'%s').strftime("%d %b %Y %H:%M:%S | ") unless preview # add date str += (not preview or message.content.text.text.lines.count <= 1) ? message.content.text.text : message.content.text.text.lines.first if message.content.respond_to? 'text' # text message - str += message.content.caption.text if message.content.respond_to? 'text' # content caption + str += message.content.caption.text if message.content.respond_to? 'caption' # content caption return str end