Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get the right telegram channel id?

Tags:

telegram

  • If I get user_id, by contacts.resolveUsername#bf0131c and search by string channel, then I get user_id = 0x0827ac18

If send it to messages.getFullChat#3b831c66, then receive error PEER_ID_INVALID.

If send if to users.getFullUser#ca30a5b1, then I get error USER_ID_INVALID.

  • If I search string channel using contacts.search#11f812d8, then I get two user with username ChannelBot and Channel_Bot, but not get with user or channel name channel.

  1. How get channel id for using in messages.getFullChat#3b831c66?
  2. How get chat_id by name?
like image 994
SkyN Avatar asked Mar 19 '16 08:03

SkyN


1 Answers

Just Simply Forward a message from your channel to This Bot: (https://telegram.me/getidsbot)

like image 70
Saeed Heidarizarei Avatar answered Oct 08 '22 15:10

Saeed Heidarizarei