Skip to content

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

Closed

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

Activity

  1. locked and limited conversation to collaborators on Mar 1, 2023
  2. converted this issue into a discussion #160 on Mar 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions