All Projects → JavaTelegramBot-API → JavaTelegramBot-API

JavaTelegramBot-API / JavaTelegramBot-API

Licence: GPL-3.0 license
Java Telegram Bot API

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to JavaTelegramBot-API

TelegramBots-Python
TelegramBots written in Python
Stars: ✭ 15 (-55.88%)
Mutual labels:  telegram-api, telegram-bot-api
Mypackbot
🤖 Your own unlimited pack of Telegram-stickers
Stars: ✭ 18 (-47.06%)
Mutual labels:  telegram-api, telegram-bot-api
Telegram
Telegram Bot API Wrapper for Scala
Stars: ✭ 310 (+811.76%)
Mutual labels:  telegram-api, telegram-bot-api
tdlight-java
Complete Bot and Userbot Telegram library based on TDLib
Stars: ✭ 128 (+276.47%)
Mutual labels:  telegram-api, telegram-bot-api
teleflask
A python telegram bot framework based on flask and pytgbot
Stars: ✭ 43 (+26.47%)
Mutual labels:  telegram-api, telegram-bot-api
echotron
An elegant and concurrent library for Telegram bots in Go.
Stars: ✭ 95 (+179.41%)
Mutual labels:  telegram-api, telegram-bot-api
Java Telegram Bot Api
Telegram Bot API for Java
Stars: ✭ 819 (+2308.82%)
Mutual labels:  telegram-api, telegram-bot-api
tdlight-telegram-bot-api
The TDLight Telegram Bot API is an actively enhanced fork of the original Bot API, featuring experimental user support, proxies, unlimited files size, and more.
Stars: ✭ 71 (+108.82%)
Mutual labels:  telegram-api, telegram-bot-api
gotgbot
Autogenerated Go wrapper for the telegram API. Inspired by the python-telegram-bot library.
Stars: ✭ 178 (+423.53%)
Mutual labels:  telegram-api, telegram-bot-api
Python Telegram
Python client for the Telegram's tdlib
Stars: ✭ 246 (+623.53%)
Mutual labels:  telegram-api, telegram-bot-api
telegram client
library for help you make userbot or bot telegram and support tdlib telegram database and only support nodejs dart and google-apps-script
Stars: ✭ 38 (+11.76%)
Mutual labels:  telegram-api, telegram-bot-api
telresender
A Telegram bot, which resend your message to another account
Stars: ✭ 22 (-35.29%)
Mutual labels:  telegram-api, telegram-bot-api
telegram
📚 Golang bindings for Telegram API
Stars: ✭ 15 (-55.88%)
Mutual labels:  telegram-api, telegram-bot-api
LilSholex
A project containing web apps and Telegram API bots.
Stars: ✭ 32 (-5.88%)
Mutual labels:  telegram-api, telegram-bot-api
grouphelperbot
A Telegram Bot made to help group admins, with Italian/English support.
Stars: ✭ 26 (-23.53%)
Mutual labels:  telegram-api, telegram-bot-api
Informer
A Telegram Mass Surveillance Bot in Python
Stars: ✭ 745 (+2091.18%)
Mutual labels:  telegram-api, telegram-bot-api
node-tdlib
TDLib Binding with Telegram Bot API Reimplemention for Node.js
Stars: ✭ 35 (+2.94%)
Mutual labels:  telegram-api, telegram-bot-api
Bybit-Auto-Trading-Bot-Ordes-placed-via-TradingView-Webhook
Python based Trading Bot that uses TradingView.com webhook JSON alerts to place orders(buy/sell/close/manage positions/TP/SL/TS etc.) on Bybit.com. Hire me directly here https://www.freelancer.com/u/Beannsofts for any assistance
Stars: ✭ 235 (+591.18%)
Mutual labels:  telegram-api, telegram-bot-api
Lulzbot Telegram Bot
Moved to https://gitlab.com/bhavyanshu/lulzbot-telegram-bot
Stars: ✭ 18 (-47.06%)
Mutual labels:  telegram-api, telegram-bot-api
telegram-log
Send a Telegram message when your scripts fire an exception or when they finish their execution.
Stars: ✭ 16 (-52.94%)
Mutual labels:  telegram-api, telegram-bot-api

Java Telegram Bot API

This is a Telegram Bot API for Java. At the time of writing it supports all the features of the HTTP API and follows the same specification. This is a work in progress and currently has very minimal error handling and testing. Any methods or functionality outside of pro.zackpollard.telegrambot.api.internal package should remain as they are currently and should work as expected, anything inside the internal package is not guaranteed to work as expected and may yield unexpected results if used in a way that is not intended.

Documentation

JavaDocs https://zackpollard.github.io/JavaTelegramBot-API  

Support

Telegram Channel for this API available at https://telegram.me/javatelegrambotapi
Please join this channel for information about updates to this bot.
You can also contact me at https://telegram.me/zackpollard
If you need help in Persian(فارسی) you can contact https://telegram.me/aaomidi

Source Code

Source is stored on GitLab and mirrored to Github
Repo on GitHub
Repo on GitLab

Example Usage

You can find fully working examples of bots in the following repository
https://github.com/zackpollard/JavaTelegramBot-API-Examples

The following is a simple overview of how the API works as a kind of quick start guide:

//Main Class
public class MyBot {

    public MyBot() {
    
        TelegramBot telegramBot = TelegramBot.login("APIKey");
       
        //The API key was invalid, an error will have also been printed into the console.
        if(telegramBot == null) System.exit(-1);
        
        telegramBot.getEventsManager().register(new MyListener());
        
        //This will tell the API to start polling the servers for updates
        //If you specify true as the argument you will receive any previous messages before the bot started.
        //If you specify false the API will discard any messages from before the bot was started.
        telegramBot.startUpdates(false);
        
        //Thread would die, do something to keep it alive.
    }
}

//Listener class
public class MyListener implements Listener {

    public void onTextMessageReceived(TextMessageReceivedEvent event) {

        event.getChat().sendMessage(SendableTextMessage.builder().message("You sent me a text based message!").replyTo(event.getMessage()).build(), telegramBot);
    }
}

Deployment

The API is available on Github Package Registry.

Maven

Maven is used for dependency management and deployment.

<dependencies>
    <dependency>
        <groupId>pro.zackpollard.telegrambot.api</groupId>
        <artifactId>jtelegram-botapi</artifactId>
        <version>1.7.2</version>
    </dependency>
</dependencies>

The following is required temporarily as github package registry can't be used without authentication, please follow the instructions on the following issue: #93 (comment)

Licensing

This project is licensed under the GPLv3 licence.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].