To get the channel id
- Create your bot with botfather
- Make you bot an admin of your channel
New improved next steps
- Go to 电报的网页版
- Click on your channel
- Look at the URL and find the part that looks like
c12112121212_17878787878787878,点击频道,查看网页上的URL
- Remove the underscore and after
c12112121212 选择下划线前面部分
- Remove the prefixed letter
12112121212 去掉前面的英文前缀
- Prefix with a
-100
so -10012112121212 加-100的前缀就是频道ID了,调用API时。chat_id填上频道ID就可以了。
- That‘s your channel id.
Old yucky next steps
- Make your channel public
- Create a public link
- Send a message from console to
@[your_public_link_text]
- Copy chat id from response in console as the channel id
Get the Telegram channel ID 获取telegram的频道ID
原文:https://www.cnblogs.com/heihei1990/p/14398259.html