pyTelegramBotAPI icon indicating copy to clipboard operation
pyTelegramBotAPI copied to clipboard

Can't detect new_chat_title

Open alfilesnet opened this issue 9 years ago • 0 comments

Please answer these questions before submitting your issue. Thanks!

  1. What version of pyTelegramBotAPI are you using? 3.1.1
  2. What OS are you using? Ubuntu 16.04 LTE
  3. What version of python are you using? 3.5.2

When I put this code, if I write some text, the information of "m" appears, but if I change the title of the supergroup, it does nothing.

@bot.message_handler (content_types = ['new_chat_title', 'text']) def nct (m): try: bot.send_message (m.chat.id, m) except Exception as e: print (e)

How do I know when a channel changes its title?

Thank you!

alfilesnet avatar Aug 05 '17 08:08 alfilesnet