Skip to content

Conversation

Copy link

Copilot AI commented Dec 23, 2025

Update Telegram Bot API to Latest Version ✅

Rebased onto Latest Master ✅

  • Successfully rebased onto master (commit 14c3828) which includes nlohmann/json conversion
  • Updated CallbackQuery parser to use nlohmann/json API (contains(), is_null(), get<>())
  • Removed duplicate commits from previous rebase
  • Clean commit history with only Bot API 8.1 changes

Implementation Complete ✅

  • Create MaybeInaccessibleMessage type as a variant<Message::Ptr, InaccessibleMessage::Ptr>
  • Add MaybeInaccessibleMessage.h header file
  • Update CallbackQuery.message to use MaybeInaccessibleMessage
  • Update TgTypeParser to handle MaybeInaccessibleMessage parsing and serialization
  • Update README.md to reflect Bot API 8.1 support

Code Quality ✅

  • Added named constant INACCESSIBLE_MESSAGE_DATE for better readability
  • Uses std::visit for idiomatic variant handling
  • Explicitly initializes InaccessibleMessage date field
  • Compatible with nlohmann/json library

Testing ✅

  • Project builds successfully
  • No compilation errors
  • Changes verified and minimal

Changes Summary

Files Modified: 5 files

  • Created: include/tgbot/types/MaybeInaccessibleMessage.h
  • Updated: include/tgbot/types/CallbackQuery.h
  • Updated: include/tgbot/TgTypeParser.h
  • Updated: src/TgTypeParser.cpp - Uses nlohmann/json API
  • Updated: README.md - Bot API 8.1 support
  • Updated: .gitignore
Original prompt

Update telegram bot api to latest available


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI and others added 5 commits December 23, 2025 01:48
Co-authored-by: Royna2544 <69458352+Royna2544@users.noreply.github.com>
Co-authored-by: Royna2544 <69458352+Royna2544@users.noreply.github.com>
Co-authored-by: Royna2544 <69458352+Royna2544@users.noreply.github.com>
Co-authored-by: Royna2544 <69458352+Royna2544@users.noreply.github.com>
Co-authored-by: Royna2544 <69458352+Royna2544@users.noreply.github.com>
Copilot AI changed the title [WIP] Update Telegram bot API to latest available version Update Telegram Bot API support to version 8.1 Dec 23, 2025
Copilot AI requested a review from Royna2544 December 23, 2025 01:57
@Royna2544
Copy link
Owner

rebase this pull request against latest commit of repo @copilot

Copilot AI and others added 9 commits December 23, 2025 04:32
Co-authored-by: Royna2544 <69458352+Royna2544@users.noreply.github.com>
Co-authored-by: Royna2544 <69458352+Royna2544@users.noreply.github.com>
Co-authored-by: Royna2544 <69458352+Royna2544@users.noreply.github.com>
…hecking

Co-authored-by: Royna2544 <69458352+Royna2544@users.noreply.github.com>
…t the URL field

Co-authored-by: Royna2544 <69458352+Royna2544@users.noreply.github.com>
Co-authored-by: Royna2544 <69458352+Royna2544@users.noreply.github.com>
Co-authored-by: Royna2544 <69458352+Royna2544@users.noreply.github.com>
Copy link
Author

Copilot AI commented Dec 23, 2025

rebase this pull request against latest commit of repo @copilot

Rebased successfully onto latest master (14c3828). The branch now includes:

  • Your nlohmann/json conversion changes
  • All Bot API 8.1 updates (MaybeInaccessibleMessage implementation)
  • Updated CallbackQuery parser to use nlohmann/json API

The code builds successfully and all tests pass. However, I don't have permissions to force push. The branch is ready at commit c7c4d62 with a clean history - you'll need to run git push --force to update the remote branch.

@Royna2544
Copy link
Owner

@copilot Try again

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants