td icon indicating copy to clipboard operation
td copied to clipboard

Didn't receive the photo on telegram?

Open weihaofdyisheng opened this issue 1 year ago • 3 comments

Message { id = 139460633 senderId = MessageSenderUser { userId = 7017911263 } chatId = -4168586955 sendingState = MessageSendingStatePending { sendingId = 0 } schedulingState = null isOutgoing = true isPinned = false isFromOffline = false canBeSaved = true hasTimestampedMedia = true isChannelPost = false isTopicMessage = false containsUnreadMention = false date = 1724742325 editDate = 0 forwardInfo = null importInfo = null interactionInfo = null unreadReactions = vector[0] { } factCheck = null replyTo = null messageThreadId = 0 savedMessagesTopicId = 0 selfDestructType = null selfDestructIn = 0.000000 autoDeleteIn = 0.000000 viaBotUserId = 0 senderBusinessBotUserId = 0 senderBoostCount = 0 authorSignature = "" mediaAlbumId = 0 effectId = 0 hasSensitiveContent = false restrictionReason = "" content = MessagePhoto { photo = Photo { hasStickers = false minithumbnail = null sizes = vector[1] { PhotoSize { type = "y" photo = File { id = 1242 size = 0 expectedSize = 0 local = LocalFile { path = "" canBeDownloaded = true canBeDeleted = false isDownloadingActive = false isDownloadingCompleted = false downloadOffset = 0 downloadedPrefixSize = 0 downloadedSize = 0 } remote = RemoteFile { id = "AgACAgUAAxkBAAKYq2bNerGeWmHMZQG3ePFji6W64uk5AAIFxzEb_IJxVuvMk9KOju_QAQADAgADeQADNQQ" uniqueId = "AQADBccxG_yCcVZ-" isUploadingActive = false isUploadingCompleted = true uploadedSize = 0 } } width = 0 height = 0 progressiveSizes = vector[0] { } } } } caption = FormattedText { text = "UION523972638361501696" entities = vector[0] { } } showCaptionAboveMedia = false hasSpoiler = false isSecret = false } replyMarkup = null } This is the callback data received

TdApi.InputMessageContent content = new TdApi.InputMessagePhoto(new TdApi.InputFileRemote(id), null,null,0,0,new TdApi.FormattedText(message, null),false,null, false); client.send(new TdApi.SendMessage(chatId, 0, null, null, null, content), defaultHandler); This is java Code. I can confirm that this code works fine. Because one account can send normally, but another account cannot send, but a callback is received.

weihaofdyisheng avatar Aug 27 '24 09:08 weihaofdyisheng

I found that the size of the picture = 0 cannot be received.

weihaofdyisheng avatar Aug 27 '24 09:08 weihaofdyisheng

Error { code = 400 message = "Wrong file identifier/HTTP URL specified" }

weihaofdyisheng avatar Aug 27 '24 09:08 weihaofdyisheng

The error "Wrong file identifier/HTTP URL specified" means that you are passing a wrong file identifier in InputFileRemote. You must not transfer file identifier between different users or even different sessions of the same user. This will not work for regular users.

levlam avatar Aug 27 '24 20:08 levlam