AgeOfWar / Telejam
Licence: mit
Java Telegram Bot API
Stars: ✭ 17
Programming Languages
java
68154 projects - #9 most used programming language
Labels
Projects that are alternatives of or similar to Telejam
Telegram
✈️ Telegram Notifications Channel for Laravel
Stars: ✭ 450 (+2547.06%)
Mutual labels: telegram-bot
Telegram Api
Complete async capable Telegram bot API implementation for PHP7
Stars: ✭ 650 (+3723.53%)
Mutual labels: telegram-bot
Shell Bot
🤖 Telegram bot that executes commands and sends the live output
Stars: ✭ 470 (+2664.71%)
Mutual labels: telegram-bot
Telegram Bot
Rust Library for creating a Telegram Bot
Stars: ✭ 633 (+3623.53%)
Mutual labels: telegram-bot
Telebot
Telegram Bot starter kit. Very easy to install with Google App Engine.
Stars: ✭ 664 (+3805.88%)
Mutual labels: telegram-bot
Telegram Bot
Ruby gem for building Telegram Bot with optional Rails integration
Stars: ✭ 433 (+2447.06%)
Mutual labels: telegram-bot
Telegram Sms
An SMS-forwarding Robot Running on Your Android Device.
Stars: ✭ 641 (+3670.59%)
Mutual labels: telegram-bot
Informer
A Telegram Mass Surveillance Bot in Python
Stars: ✭ 745 (+4282.35%)
Mutual labels: telegram-bot
Telegraf
Modern Telegram Bot Framework for Node.js
Stars: ✭ 5,178 (+30358.82%)
Mutual labels: telegram-bot
Zabbix In Telegram
Zabbix Notifications with graphs in Telegram
Stars: ✭ 710 (+4076.47%)
Mutual labels: telegram-bot
Rat Via Telegram
Windows Remote Administration Tool via Telegram
Stars: ✭ 453 (+2564.71%)
Mutual labels: telegram-bot
Flowerss Bot
A telegram bot for rss reader. 一个支持应用内阅读的 Telegram RSS Bot。
Stars: ✭ 660 (+3782.35%)
Mutual labels: telegram-bot
Covid 19 Telegram Bot
A Telegram bot to get latest progress on COVID-19
Stars: ✭ 16 (-5.88%)
Mutual labels: telegram-bot
Opensourcewebsite Org
OpenSourceWebsite (OSW) - online community managed by users using electronic voting and modifying source code
Stars: ✭ 834 (+4805.88%)
Mutual labels: telegram-bot
Telegram Bot Java Library
A simple to use library to create Telegram Bots in Java. This library uses the Telegram Bot API
Example
This program re-sends messages.
package test;
import io.github.ageofwar.telejam.Bot;
import io.github.ageofwar.telejam.LongPollingBot;
import java.io.IOException;
public class RepeaterBot extends LongPollingBot {
public static void main(String... args) throws IOException {
if (args.length != 1) {
System.err.println("Pass the bot token as unique program argument");
System.exit(1);
}
String token = args[0];
Bot bot = Bot.fromToken(token);
RepeaterBot repeaterBot = new RepeaterBot(bot);
repeaterBot.run();
}
public RepeaterBot(Bot bot) {
super(bot);
events.registerUpdateHandler(new MessageRepeater(bot));
}
}
import io.github.ageofwar.telejam.Bot;
import io.github.ageofwar.telejam.messages.TextMessage;
import io.github.ageofwar.telejam.messages.TextMessageHandler;
import io.github.ageofwar.telejam.methods.SendMessage;
public class MessageRepeater implements TextMessageHandler {
private final Bot bot;
public MessageRepeater(Bot bot) {
this.bot = bot;
}
@Override
public void onTextMessage(TextMessage message) throws Throwable {
SendMessage sendMessage = new SendMessage()
.replyToMessage(message)
.text(message.getText());
bot.execute(sendMessage);
}
}
You can see other examples here.
Read the wiki for more information. JavaDocs can be found here.
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].