C++ code example of telegram bot api. Use it as is. E-mail address for questions is ivorob[at]gmail.com.
The example directory contains a few examples of using telegram bot api. To compile library or examples use the following commands:
cmake . && make
To compile on Windows platform you can use the following commands below, but now I'm not sure that code will be compiled correctly. I didn't try to compile this api on Windows. This feature is in TODO-list.
cmake -G "NMake Makefiles"
nmake
- User
- Message
- File
- PhotoSize
- Chat
- getMe
- sendMessage
- getFile
- getUpdates
- getChat
- sendPhoto
- Windows building
- Support of
forwardMessagemethod - Support of
sendAudiomethod - Support of
sendDocumentmethod - Support of
sendStickermethod - Support of
sendVideomethod - Support of
sendVoicemethod - Support of
sendLocationmethod - Support of
sendVenuemethod - Support of
sendContactmethod - Support of
sendChatActionmethod - Support of
getUserProfilePhotosmethod - Support of
kickChatMembermethod - Support of
leaveChatmethod - Support of
unbanChatMembermethod - Support of
getChatAdministratorsmethod - Support of
getChatMembersCountmethod - Support of
getChatMembermethod - Support of
answerCallbackQuerymethod - Support of
editMessageTextmethod - Support of
editMessageCaptionmethod - Support of
editMessageReplyMarkupmethod