Simple Telegram Bot API to Java through https
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
.gitignore
.travis.yml
LICENSE
README.md
pom.xml

README.md

Simple Telegram Bot API implementation to Java

This API is a unofficial one. Check Telegram Bot API for more info.

Project Version Project Status

Usage

import com.cadiducho.telegrambotapi.BotAPI;
import com.cadiducho.telegrambotapi.TelegramBot;
import com.cadiducho.telegrambotapi.api.User;
import com.cadiducho.telegrambotapi.api.exception.TelegramException;

...

static BotAPI telegramBot;

public static void main(String[] args) {
    telegramBot = new TelegramBot("to:kken");
    
    try {
        User user = telegramBot.getMe();
    } catch(TelegramException e) {
        System.out.println("Could'nt get bot instance!");
    }
}

Javadocs

JavaDocs are located in https://cadiducho.com/telegrambotapi

Maven Usage

If you want use Telegram Bot API as a Maven Dependency simply add repo and artifact:

<repository>
    <id>cadiducho-repo</id>
    <url>https://cadiducho.com/repo</url>
</repository>
...
<dependency>
    <groupId>com.cadiducho</groupId>
    <artifactId>TelegramBotAPI</artifactId>
    <version>4.1.1</version>
</dependency>

License

This project is released under the MIT-License.

This project starts as a Bukkit-Minecraft API and now it is a standalone library. Check the original Minegram! Cadiducho's TelegramBotAPI is highly inspired on Irazasyed's Telegram Bot API - PHP SDK and Rainu's telegram-bot-api, but this one is written from scratch.

© 2019 Cadiducho