javascript - How to get Telegram Bot Super Group ID? - Stack Overflow

How to get Telegram Bot Super Group ID?With This Code:bot.on('message', (msg) => {consol

How to get Telegram Bot Super Group ID?

With This Code:

bot.on('message', (msg) => {
  console.log(msg);
});

I Can See my Private Channel ID in forward_from_chat: { id: -1001125265425, of the object, That is Okey.
But How Can I Get Super Group ID?

How to get Telegram Bot Super Group ID?

With This Code:

bot.on('message', (msg) => {
  console.log(msg);
});

I Can See my Private Channel ID in forward_from_chat: { id: -1001125265425, of the object, That is Okey.
But How Can I Get Super Group ID?

Share Improve this question edited Jan 25, 2019 at 16:04 Saeed Heidarizarei asked Nov 20, 2017 at 0:41 Saeed HeidarizareiSaeed Heidarizarei 8,95623 gold badges66 silver badges111 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 5

First of all, you should add a bot to that group.

Then if the group is public (has @username), just send message to the group and read reply from Telegram server, it will be of type Message, and Message->Chat->Id is group's ID.

If the group is private (doesn't have a @username), then you can mention a bot in your message and, again, read reply from Telegram server.

Or you can use some third-party bots, for example, @my_id_bot, which I made specifically for this.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1742361342a4429453.html

相关推荐

  • javascript - How to get Telegram Bot Super Group ID? - Stack Overflow

    How to get Telegram Bot Super Group ID?With This Code:bot.on('message', (msg) => {consol

    2小时前
    30

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信