{"repo":"pengrad/java-telegram-bot-api","free":true,"listed":false,"github":"https://github.com/pengrad/java-telegram-bot-api","clone":"git clone https://github.com/pengrad/java-telegram-bot-api.git","description":"Telegram Bot API for Java","language":"Java","stars":1959,"topics":["telegram","telegram-bot","telegram-api","bot","telegram-bot-api"],"license":"Apache-2.0","category":"chat-messaging","readme_excerpt":"Java Telegram Bot API Java library for interacting with Telegram Bot API - Full support of all Bot API 10.1 methods - Telegram Passport and Decryption API - Bot Payments - Gaming Platform Download Gradle: Maven: JAR with all dependencies on release page Usage Documentation - Creating your bot - Making requests - Getting updates - Available types - Available methods - Updating messages - Stickers - Inline mode - Payments - Telegram Passport - Games Creating your bot Network operations based on OkHttp library. You can build bot with custom OkHttpClient, for specific timeouts or interceptors. Making requests Synchronous Asynchronous Request in response to update Getting updates You can use getUpdates request, parse incoming Webhook request, or set listener to receive updates. Update object just copies Telegram's response. Get updates Building request The getUpdates method returns the earliest 100 unconfirmed updates. To confirm an update, use the offset parameter when calling getUpdates like this: offset = updateId of last processed update + 1 All updates with updateId less than offset will be marked as confirmed on the server and will no longer be returned. Executing Webhook Building request Executing Using Webhook you can parse request to Update Updates Listener You can set a listener to receive incoming updates as if using Webhook. This will trigger executing getUpdates requests in a loop. Listener should return id of the last processed (confirmed) update. To confirm all upda","default_branch":null,"files":null,"tree":[],"storefront":"/r/pengrad","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/pengrad/java-telegram-bot-api/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}