2016-06-01 78 views
1

如何獲取當前頻道簡介照片通過頻道ID從電報api或...?電報獲得頻道簡介照片

例如我的頻道ID是@wikidaily和信道鏈路是https://telegram.me/wikidaily

THX。

+0

沒有人可以幫助我! :( – mghhgm

回答

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; 

其中包含ChatFull類型的full_chat: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; 

如果我能找到一個更簡單直接的方法,我會更新這個帖子。

歡呼聲。