How to get the channel id telegram?

Hello, using the API for bots, and I need to know the channel id, to which was added the bot. Is it possible to know the link or login channel?
March 12th 20 at 08:05
1 answer
March 12th 20 at 08:07
Solution
You can find the first message from an unknown chatroom that the bot joined a new chat. If there is a list of chats on a check, send a request getChatAdministrators and see if in the list your bot
Thank you, I did! - Amara.Reil commented on March 12th 20 at 08:10

Find more questions by tags Telegram