gpt4 book ai didi

java - 如何从 Telegram 信使 channel 获取个人资料图片?

转载 作者:行者123 更新时间:2023-11-30 10:40:42 27 4
gpt4 key购买 nike

如何在 Java 代码中以编程方式从 Telegram 信使 channel 获取个人资料图像?我不想在我的应用中手动更改图像。

最佳答案

channel#a14dca52 flags:# creator:flags.0?true kicked:flags.1?true left:flags.2?true editor:flags.3?true moderator:flags.4?true broadcast:flags.5?true verified:flags.7?true megagroup:flags.8?true restricted:flags.9?true democracy:flags.10?true signatures:flags.11?true min:flags.12?true id:int access_hash:flags.13?long title:string username:flags.6?string photo:ChatPhoto date:int version:int restriction_reason:flags.9?string = Chat;

这是您要在 channel 对象下查找的字段:photo:ChatPhoto

ChatPhoto 有以下几种类型:

chatPhotoEmpty#37c1011c = ChatPhoto;
chatPhoto#6153276a photo_small:FileLocation photo_big:FileLocation = ChatPhoto;

fileLocationUnavailable#7c596b46 volume_id:long local_id:int secret:long = FileLocation;
fileLocation#53d69076 dc_id:int volume_id:long local_id:int secret:long = FileLocation;

关于java - 如何从 Telegram 信使 channel 获取个人资料图片?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38806355/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com