remove telegram profile photo with telegram-cli or API's

i want to make a auto profile changer program with telegram-cli. i can upload new profile photo with 'set_profile_photo' , but i can't remove old photos. is there any way to remove old photos with telegram-cli or telegram API ?

Upvotes: 2

Views: 4580

Answers (1)

Charles Okwuagwu
Charles Okwuagwu

Reputation: 10866

To remove the current profile photo you can use the following:

photos.updateProfilePhoto#eef579a0 id:InputPhoto crop:InputPhotoCrop = UserProfilePhoto;

Set id:InputPhoto to inputPhotoEmpty#1cd7bf0d and set crop:InputPhotoCrop to inputPhotoCropAuto#ade6b004

see below:

send_message(TL.photos_updateProfilePhoto(TL.InputPhotoEmpty{}, TL.InputPhotoCropAuto{})

Upvotes: 2

Related Questions