zelenin/go-tdlib

SetProfilePhoto got error.

chenyu1990 opened this issue · 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

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