获取 TELEGRAM 频道/组 ID [英] Get TELEGRAM Channel/Group ID
本文介绍了获取 TELEGRAM 频道/组 ID的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
假设我加入了 TELEGRAM 组...
Let's say, I've joined TELEGRAM group...
我只是 GROUP 的典型成员(因此,不能在那里使用任何机器人......?)所以,我无法找到方法,如何获取 GROUP ID.
I am just a typical member of GROUP (and thus, cant use any bots there.. ?) so, I am unable to find out the way, how to get GROUP ID.
推荐答案
通过代码:
如果您是某个群组的成员,那么当该群组有任何活动时,您应该会收到该群组的更新
.更新将包含一个 chats
列表元素,您可以从中获取一个 Channel
,其中包含以下相关字段:
If you are a member of a group, you should receive updates
from that group when ever there is any activity from that group. The updates will contain a chats
list-element from which you can get a Channel
which has the following relevant fields:
id: group_id,
title: "the_group_title",
username: "group_username"
这篇关于获取 TELEGRAM 频道/组 ID的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文