S
S
s1veme2020-08-27 19:02:37
Python
s1veme, 2020-08-27 19:02:37

Telebot not displaying admins?

I use the get_chat_administrators method - but the bot displays only one administrator, and there are three of them.

bot.send_message(message.chat.id, bot.get_chat_administrators(message.chat.id))


Result:
{'user': {'id': ID, 'is_bot': False, 'first_name': 'ИМЯ', 'username': 'Ы', 'last_name': 'ФАМИЛИЯ', 'language_code': 'ru'}, 'status': 'administrator', 'until_date': None, 'can_be_edited': False, 'can_change_info': True, 'can_post_messages': None, 'can_edit_messages': None, 'can_delete_messages': True, 'can_invite_users': True, 'can_restrict_members': True, 'can_pin_messages': True, 'can_promote_members': True, 'can_send_messages': None, 'can_send_media_messages': None, 'can_send_other_messages': None, 'can_add_web_page_previews': None}


It is possible that I did not understand or did not notice something.
5f47d8e0d6430710910910.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
soremix, 2020-08-27
@aleksegolubev

I hope you did somewhere

print(bot.get_chat_administrators(message.chat.id))

and you only see one admin, or are you passing a list as a message text parameter that takes the string ?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question