go-tdlib icon indicating copy to clipboard operation
go-tdlib copied to clipboard

SetProfilePhoto got error.

Open chenyu1990 opened this issue 2 years ago • 1 comments

ok, err := tl.Client.SetProfilePhoto(&client.SetProfilePhotoRequest{ Photo: &client.InputChatPhotoStatic{ Photo: &client.InputFileRemote{Id: telegramUser.PhotoRemoteId}, }, IsPublic: true, })

got error: 400 Can't use file of type ChatPhoto as Photo

chenyu1990 avatar Dec 30 '23 10:12 chenyu1990

check the tdlib version. It must match the tdlib version from the README

zelenin avatar Dec 30 '23 12:12 zelenin