S
S
s1veme2020-08-26 21:52:30
Bots
s1veme, 2020-08-26 21:52:30

How to get the owner of a telegram chat?

I use Telebot, I didn’t find anything in the documentation about working with chats. How to get the owner and administrators of a chat?
When adding telegrams to a conversation, it is necessary that the bot receives the id / username of the owner and administrators.

Answer the question

In order to leave comments, you need to log in

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

https://github.com/eternnoir/pyTelegramBotAPI#methods

All API methods are located in the TeleBot class. They are renamed to follow common Python naming conventions. Eg getMe is renamed to get_me and sendMessage to send_message.

https://core.telegram.org/bots/api#getchat
https://core.telegram.org/bots/api#getchatadminist...
Respectively get_chat and get_chat_administrators

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question