Simple C++11 library for Telegram Bot API
Requires the nlohmann::json and yhirose::cpp-httplib (with openssl) libraries
Supported:
● Forwarding messages
● Replying to messages
● Downloading files (file_id, URL)
● Sending messages with:
- Text
- Custom reply keyboard
- Image (file_id, local file, URL)
- Video (file_id, local file, URL)
- Document (file_id, local file, URL)
- Audio (file_id, local file, URL)
- Sticker (file_id, local file, URL)
● Receiving messages with:
-
Text (as data.text)
-
Image (as data.photo)
-
Video (as data.video)
-
Document (as data.document)
-
Audio (as data.audio)
-
Sticker (as data.sticker)
-
Voice (as data.voice)
-
Caption (as data.text)
-
Entities (commands, hashtags, etc.; as data.entities)
-
Chat ID (as data.chat_id)
-
Message ID (as data.message_id)