电报获取频道个人资料照片

时间:2016-06-01 06:30:25

标签: api telegram

如何通过api或...?

从电报中获取当前频道个人资料照片

例如,我的频道ID为@wikidaily,频道链接为https://telegram.me/wikidaily

THX。

1 个答案:

答案 0 :(得分:0)

see here

您可以尝试使用此功能,但至少需要了解InputChannel个详细信息(您之前已收到的对话回复中已有此信息)

 inputChannel#afeb712e channel_id:int access_hash:long = InputChannel;

---功能---

channels.getFullChannel#8736a09 channel:InputChannel = messages.ChatFull;

它将返回:

messages.chatFull#e5d7d19c full_chat:ChatFull chats:Vector<Chat> users:Vector<User> = messages.ChatFull;

其中包含full_chat:ChatFull类型的ChatFull,您可以从中提取所需的照片:chat_photo:Photo

channelFull#c3d5512f flags:# can_view_participants:flags.3?true can_set_username:flags.6?true id:int about:string participants_count:flags.0?int admins_count:flags.1?int kicked_count:flags.2?int read_inbox_max_id:int read_outbox_max_id:int unread_count:int chat_photo:Photo notify_settings:PeerNotifySettings exported_invite:ExportedChatInvite bot_info:Vector<BotInfo> migrated_from_chat_id:flags.4?int migrated_from_max_id:flags.4?int pinned_msg_id:flags.5?int = ChatFull;

如果我能找到更简单的直接方法,我会更新这篇文章。

欢呼声。