pyTelegramBotAPI icon indicating copy to clipboard operation
pyTelegramBotAPI copied to clipboard

restrict_chat_member now working?

Open ticoti opened this issue 9 years ago • 3 comments

Please answer these questions before submitting your issue. Thanks!

  1. What version of pyTelegramBotAPI are you using? Last one
  2. What OS are you using? ubuntu 12.10
  3. What version of python are you using? python 3.6

Have tried new version with restrict_chat_member and it simply doesnt work in any way I try, it does not restrict the user.

ticoti avatar Jul 01 '17 13:07 ticoti

Have you checked of your bot's permission?

I've tried to change the photo of a channel and it said me: Bad Request: not enough rights to change chat photo

I changed it and now works perfectly.

alfilesnet avatar Jul 01 '17 20:07 alfilesnet

yes, it have permissions, it works with a simple http api call but not with this library and it is strange because it returns true, but it doesnt restrict the user

ticoti avatar Jul 01 '17 22:07 ticoti

I got it to work, but I had to add all the parameters to make it work:

can_send_messages=False,can_send_media_messages=False, can_send_other_messages=False,can_add_web_page_previews=False

telegram doc sais they are not required though

ticoti avatar Jul 02 '17 03:07 ticoti