go-tdlib
go-tdlib copied to clipboard
SetProfilePhoto got error.
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