From 15fbbc3361c3761b3c296dd32c7e5ef8db9ada7e Mon Sep 17 00:00:00 2001 From: PressXToWin <75699872+PressXToWin@users.noreply.github.com> Date: Wed, 11 Aug 2021 07:03:24 +0000 Subject: [PATCH 1/2] Add option 'notifydel' When user has many chats with enabled message autodelete, he gots very much annoying notifications with pointless information. He already knows when and which messages will be deleted. As solution I can suggest to add new option in account configuration where user could choose, does he wants to see notifications about deleted messages or not. By default it will show notifications. --- inc/telegramclient.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/inc/telegramclient.rb b/inc/telegramclient.rb index 395d9f8..f2b043e 100644 --- a/inc/telegramclient.rb +++ b/inc/telegramclient.rb @@ -28,6 +28,7 @@ timezone — adjust timezone for Telegram user statuses (example: +02:00) keeponline — always keep telegram session online and rely on jabber offline messages (example: true) rawmessages — do not add additional info (message id, origin etc.) to incoming messages (example: true) + notifydel — send info (message id) about deleted messages (example: true) } HELP_CHAT_CMD= %q{Available commands: @@ -206,7 +207,7 @@ def update_messagecontent(update) ## message(s) deleted def update_deletemessages(update) text = "✗ %s" % update.message_ids.join(',') - @xmpp.send_message(@jid, update.chat_id, text) if update.is_permanent + @xmpp.send_message(@jid, update.chat_id, text) if update.is_permanent unless @session[:notifydel] == 'false' end ## new chat discovered From d8aad385df45d1b8cfe5a0394df9bb669443cae9 Mon Sep 17 00:00:00 2001 From: PressXToWin <75699872+PressXToWin@users.noreply.github.com> Date: Sun, 27 Nov 2022 18:46:57 +0700 Subject: [PATCH 2/2] Update README.md --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index d9bca7b..0a1e81e 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,9 @@ ## Mirror (latest pull 2020-11-01) From: https://dev.narayana.im/narayana/zhabogram +## Zhabogram is deprecated now. +Repository is archived. + ### Dependencies ### * Ruby >= 2.4