TelegramBots / Telegram.Bot

.NET Client for Telegram Bot API
https://telegrambots.github.io/book
MIT License
3.17k stars 686 forks source link

Should_Edit_Message_Markup test failing #671

Closed karb0f0s closed 6 years ago

karb0f0s commented 6 years ago

Should_Edit_Message_Markup test is failing because edited message contains edit_date property: Original message:

{
  "message_id": 4608,
  "from": {
    "id": 464646464,
    "is_bot": true,
    "first_name": "mytestbot",
    "username": "mytestbot"
  },
  "date": 1523271033,
  "chat": {
    "id": -1001165656565,
    "type": "supergroup",
    "title": "Test Chat Title",
    "username": "mytestbot"
  },
  "text": "Inline keyboard will be updated shortly"
}

Edited message:

{
  "message_id": 4608,
  "from": {
    "id": 464646464,
    "is_bot": true,
    "first_name": "mytestbot",
    "username": "mytestbot"
  },
  "date": 1523271033,
  "chat": {
    "id": -1001165656565,
    "type": "supergroup",
    "title": "Test Chat Title",
    "username": "mytestbot"
  },
  **"edit_date": 1523271034,**
  "text": "Inline keyboard will be updated shortly"
}
poulad commented 6 years ago

This test used to pass before. Tg team must have fixed that now.

poulad commented 6 years ago

Oh. I now remember that I reported this issue to BotSupport earlier.

https://github.com/TelegramBots/Telegram.Bot/blob/16facadc1c27eaf23ffe8edcdb80382ea037648e/test/Telegram.Bot.Tests.Integ/Update%20Messages/EditMessageContentTests.cs#L49