使用 telegram-cli 或 API 删除电报个人资料照片
remove telegram profile photo with telegram-cli or API's
我想用 telegram-cli 制作一个自动配置文件更改程序。
我可以使用 'set_profile_photo' 上传新的个人资料照片,但我无法删除旧照片。
有没有办法用 telegram-cli 或 telegram API 删除旧照片?
要删除当前个人资料照片,您可以使用以下方法:
photos.updateProfilePhoto#eef579a0 id:InputPhoto crop:InputPhotoCrop = UserProfilePhoto;
将id:InputPhoto
设置为inputPhotoEmpty#1cd7bf0d
并将crop:InputPhotoCrop
设置为inputPhotoCropAuto#ade6b004
见下文:
send_message(TL.photos_updateProfilePhoto(TL.InputPhotoEmpty{}, TL.InputPhotoCropAuto{})
我想用 telegram-cli 制作一个自动配置文件更改程序。 我可以使用 'set_profile_photo' 上传新的个人资料照片,但我无法删除旧照片。 有没有办法用 telegram-cli 或 telegram API 删除旧照片?
要删除当前个人资料照片,您可以使用以下方法:
photos.updateProfilePhoto#eef579a0 id:InputPhoto crop:InputPhotoCrop = UserProfilePhoto;
将id:InputPhoto
设置为inputPhotoEmpty#1cd7bf0d
并将crop:InputPhotoCrop
设置为inputPhotoCropAuto#ade6b004
见下文:
send_message(TL.photos_updateProfilePhoto(TL.InputPhotoEmpty{}, TL.InputPhotoCropAuto{})