J-Rios / TLG_JoinCaptchaBot

Telegram Bot to verify if users joining a group are human. The Bot sends an image captcha for each new user and kicks any of them who can't solve the captcha in a specified time.
GNU General Public License v3.0
520 stars 217 forks source link

[Question] Hide messages notifications #10

Closed SA7BNT closed 5 years ago

SA7BNT commented 5 years ago

Hallo, is it possible to add a command so that the admin/admins will not become the CaptchaBot message?? Somthing like "do not send to ChatID xxxxxx You can get your ChatID at @FalconGate_Bot But i guess you know that ;)

Best Tim

J-Rios commented 5 years ago

Hi,

Sorry but I can't figure out what do you mean by "the admin/admins will not become the CaptchaBot message"....

Chat IDs are associated to chats (private chat, group chat, channel chat), not to users. May you are reffering to User ID? In that case, what do you mean?

SA7BNT commented 5 years ago

Sorry, absolut i mean the UserID :( Im talking about this message. photo_2019-07-17 18 18 06 It should be nice if i can add my or other admins userID in the constants.py and after that i will not get this message more on my display. So the bot will block sending the added userID´s the message. Hope you can follow me now. :)

J-Rios commented 5 years ago

Ok, now I get it, however that is not Bot related and I can do nothing about that.

That is telegram client app notifications for that group, Bot does not send that message to you, it is generated by your own telegram app and it shows up notifications for all group members messages.

You can disable all notifications of the group in group options, but there is no way to just disable notifications of one specific user of a group, unless Telegram implements an option in the App to do that.

SA7BNT commented 5 years ago

Yea the Notifications are from the Telegram Client, but the text for the Telegram Clients Notification is comming from the bot or am i wrong? Bildschirmfoto 2019-07-17 um 19 31 54 This will be a Notification text for Telegram Clients App Notification. It was this text i mean.

J-Rios commented 5 years ago

The message is sent from the Bot to the group, not to you, also, there is no way to hide (dont show) a group message to specific users.