Next, you will need to create a new bot on Telegram and obtain its API token, which you will use to access the Telegram API and send messages. To get the bot token for a Telegram bot, you will need to create a new bot using the BotFather bot on Telegram. To do this, follow these steps: 1. Knowing the ID of the chat, you can use these methods: getChat - to get up to date info about the chat. returns Chat object on success. getChatAdministrators - to get a list of admins in a chat. returns an Array of ChatMember on success. getChatMembersCount - to get the number of members in a chat. The chat_id is the same as the id sent to your app when a user logs in. After the user has authorized.yu, you need to check his data and make sure that it is real. This can be done using the TgWebValid library. After that, you can log in as on any other site, since you have the user data. I've been trying to send a message to multiple chat IDs using telegram bot. from telegram import Bot, InputMediaDocument BOT_TOKEN = "xxxxxx" CHAT_IDs = [-1001xxx,-100177xxx,-100188xxx] for CHAT_ID in CHAT_IDs: x x x bot.send_media_group (CHAT_ID, media=media_group) The problem is message is only been sent to the last chat id in CHAT_IDs array It will automagically resolve the usernames you provide in the chat_id parameter using a built in mtproto client. You can use usernames of bots and normal users in every method that requires the chat_id parameter, but to get info about a user/bot you can use the getChat method. No. It's not possible right now. The Bot API is an HTTP-based interface created for developers keen on building bots for Telegram. Check 👉 Bots: An introduction for developers 👈 to understand what a Telegram bot is and what it can do. We, the Telegram Bots team, mainly focus on developing multiple NuGet packages for creating chatbots. ️ If Bot API is too limited for Jun 28, 2021 at 1:07. 2. "Telegram Chat ID is an unique identification number of a Telegram chat (personal/group chat). However the Telegram User ID is a unique identification number of a particular Telegram user. Telegram Chat ID helps telegram to identify your Telegram chat groups even if you change name and username of Telegram Group." Returned only in telegram.Bot.get_chat(). can_set_sticker_set (bool, optional) – True, if the bot can change group the sticker set. Returned only in telegram.Bot.get_chat(). linked_chat_id (int, optional) – Unique identifier for the linked chat, i.e. the discussion group identifier for a channel and vice versa; for supergroups and channel Modified 9 months ago. Viewed 348 times. 0. I need to get last message ID from Telegram Channel in channel_message_id, here is my Code: import telegram bot = telegram.Bot (token='TOKEN') user_id = 745466988 updates = bot.get_updates () channel_message_id = 100 channel_id = '@Space_of_Cars' bot.forward_message (chat_id=user_id, from_chat_id This Resolved by new telegram update: March 9, 2021 Bot API 5.1. Added two new update types. Added updates about member status changes in chats, represented by the class ChatMemberUpdated and the fields my_chat_member and chat_member in the Update class. The bot must be an administrator in the chat to receive chat_member updates about other rvNCCs.