Skip to content

ForwardMessagesAsync Gives me an invalid id of the sent message #159

@Shpakoff

Description

@Shpakoff

Client.ForwardMessagesAsync, somehow works strangely, why do I get the id of a message that, just by one more than the id of the previous message from the chat. And when I try to find this message in this chat through the received id, I get an error.
Example my code for get id:
var messages = await Client.ForwardMessagesAsync(
chatId: chatId,
fromChatId: fromChatId,
messageIds: new[] { postId },
sendCopy: true);
return messages.Messages_[0].Id;

=[20:24:44]m_id[151400742912] message
=forward post -> [20:24:44] m_id[151400742913] forward message

messages.Messages_[0].Id = 151400742913

when i get chathistory
=[20:24:44]m_id[151400742912] message
=[20:24:44] m_id[151401791488] forward message

Or should I calculate this id myself so 151400742913 - 1 + 1048576

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions