【问题标题】:How can I get profile images from telegram messenger channels?如何从电报信使频道获取个人资料图片?
【发布时间】:2016-12-12 21:06:58
【问题描述】:

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

【问题讨论】:

  • 你想要频道用户的头像还是频道本身?
  • @Charles Okwuagwu 频道本身

标签: java android telegram


【解决方案1】:
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;

【讨论】:

  • @Hossein 如果此答案对您有用,请接受该答案作为对其他用户的参考。干杯。
猜你喜欢
  • 2013-08-19
  • 2014-09-15
  • 1970-01-01
  • 2017-04-08
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多