首页 > 其他 > 详细

Get the Telegram channel ID 获取telegram的频道ID

时间:2021-02-12 08:07:08      阅读:276      评论:0      收藏:0      [点我收藏+]

To get the channel id

  1. Create your bot with botfather
  2. Make you bot an admin of your channel

New improved next steps

  1. Go to 电报的网页版
  2. Click on your channel
  3. Look at the URL and find the part that looks like c12112121212_17878787878787878,点击频道,查看网页上的URL
  4. Remove the underscore and after c12112121212 选择下划线前面部分
  5. Remove the prefixed letter 12112121212 去掉前面的英文前缀
  6. Prefix with a -100 so -10012112121212 加-100的前缀就是频道ID了,调用API时。chat_id填上频道ID就可以了。
  7. That‘s your channel id.

Old yucky next steps

  1. Make your channel public
  2. Create a public link
  3. Send a message from console to @[your_public_link_text]
  4. 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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!