All Projects → xabgesagtx → Telegram Spring Boot Starter

xabgesagtx / Telegram Spring Boot Starter

Licence: mit
Telegram Bot API Spring Boot Starter

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Telegram Spring Boot Starter

Spring Higher Order Components
⚡️ Preconfigured components to speedup Spring Boot development
Stars: ✭ 65 (-17.72%)
Mutual labels:  spring-boot, spring, spring-boot-starter
Java Telegram Bot Api
Telegram Bot API for Java
Stars: ✭ 819 (+936.71%)
Mutual labels:  telegram-bot-api, telegram-bot, telegram
Trashemail
A hosted disposable email telegram bot; Extremely privacy friendly; Proudly hosted for community.
Stars: ✭ 408 (+416.46%)
Mutual labels:  telegram-bot, spring, telegram
Laravel Social Auto Posting
🌈Laravel social auto posting
Stars: ✭ 306 (+287.34%)
Mutual labels:  telegram-bot-api, telegram-bot, telegram
Disconf Spring Boot Starter
disconf-spring-boot-starter 让你可以使用spring-boot的方式开发依赖disconf的程序 只需要关心disconfi的配置文件和配置项,省略了编写xml的麻烦
Stars: ✭ 44 (-44.3%)
Mutual labels:  spring-boot, spring, spring-boot-starter
Telegram
Telegram Bot API Wrapper for Scala
Stars: ✭ 310 (+292.41%)
Mutual labels:  telegram-bot-api, telegram-bot, telegram
Informer
A Telegram Mass Surveillance Bot in Python
Stars: ✭ 745 (+843.04%)
Mutual labels:  telegram-bot-api, telegram-bot, telegram
Python Telegram
Python client for the Telegram's tdlib
Stars: ✭ 246 (+211.39%)
Mutual labels:  telegram-bot-api, telegram-bot, telegram
Spring Thrift Api Gateway
Gateway for Apache Thrift requests processing that is built on Spring Cloud stack
Stars: ✭ 38 (-51.9%)
Mutual labels:  spring-boot, spring, spring-boot-starter
Spytrojan keylogger
[Solo para programadores] Troyano espía | Keylogger solo para Windows, se replica en el sistema y se inicia automaticamente al iniciar sesión. | Envío de registro mediante [Base de Datos], [Gmail] o [BotTelegram].
Stars: ✭ 32 (-59.49%)
Mutual labels:  telegram-bot-api, telegram-bot, telegram
checkmk-telegram-notify
Get alerted by Check_MK via Telegram bash script
Stars: ✭ 28 (-64.56%)
Mutual labels:  telegram, telegram-bot, telegram-bot-api
University News Notifier
📚 University news notifier
Stars: ✭ 56 (-29.11%)
Mutual labels:  telegram-bot-api, telegram-bot, telegram
webhook-aiogram-heroku
A sample telegram bot made with aiogram, that fetches updates using the web-hook connection. Can be easily deployed to Heroku.
Stars: ✭ 36 (-54.43%)
Mutual labels:  telegram, telegram-bot, telegram-bot-api
Kotlin Telegram Bot
🤖 A wrapper for the Telegram Bot API written in Kotlin
Stars: ✭ 337 (+326.58%)
Mutual labels:  telegram-bot-api, telegram-bot, telegram
Telegrammer
Telegram Bot - written with Swift 5.2 / NIO, supports Linux, macOS
Stars: ✭ 248 (+213.92%)
Mutual labels:  telegram-bot-api, telegram-bot, telegram
Pytelegrambotapi
Python Telegram bot api.
Stars: ✭ 4,986 (+6211.39%)
Mutual labels:  telegram-bot-api, telegram-bot, telegram
Java Telegram Bot Tutorial
Java Telegram Bot Tutorial. Feel free to submit issue if you found a mistake.
Stars: ✭ 165 (+108.86%)
Mutual labels:  telegram-bot-api, telegram-bot, telegram
Rastreiobot
Telegram Bot @RastreioBot
Stars: ✭ 196 (+148.1%)
Mutual labels:  telegram-bot-api, telegram-bot, telegram
Mypackbot
🤖 Your own unlimited pack of Telegram-stickers
Stars: ✭ 18 (-77.22%)
Mutual labels:  telegram-bot-api, telegram-bot, telegram
Bot Telegram
Exemplo de como criar um BOT para o melhor app de mensagens do mundo: Telegram.
Stars: ✭ 53 (-32.91%)
Mutual labels:  telegram-bot-api, telegram-bot, telegram

Telegram Spring Boot Starter

build badge Maven Central Jitpack

This is a starter pom for a spring boot application with the TelegramBots Java API.

The starter is available at maven central. Just add the following dependency to your pom:

<dependency>
	<groupId>com.github.xabgesagtx</groupId>
	<artifactId>telegram-spring-boot-starter</artifactId>
	<version>0.24</version>
</dependency>

For gradle users just add this to your dependencies:

compile('com.github.xabgesagtx:telegram-spring-boot-starter:0.24')

The only thing you need to do after adding the dependency is to create a bean for a bot. E.g.:

@Component
public class Bot extends TelegramLongPollingBot {
...
} 

or for a webhook bot:

@Component
public class Bot extends TelegramWebhookBot {
... 
}

if you want to overwrite a webhook for a specific bot:

@Component
public class Bot extends CustomizableTelegramWebhookBot {
... 
}

The bot will then be registered for you automatically on startup.

Configuration

The following properties can be configured (none are mandatory):

property description available since
telegram.external-url external base url for the webhook 0.15
telegram.internal-url internal base url for the webhook 0.15
telegram.key-store keystore for the server 0.15
telegram.key-store-password keystore password for the server 0.15
telegram.path-to-certificate full path for .pem public certificate keys 0.15
telegram.proxy.type type of proxy (NO_PROXY, HTTP, SOCKS4, SOCKS5) 0.22
telegram.proxy.host host of the proxy 0.22
telegram.proxy.port port of the proxy 0.22
telegram.proxy.user username for proxy authentication 0.22
telegram.proxy.password password for proxy authentication 0.22

Webhook support

You need to configure at least telegram.external-url and telegram.internal-url for webhook support. This configuration leaves the HTTPS handling to a proxy.

If you configure telegram.key-store for your HTTPS webhook bot, you need to configure telegram.key-store-password as well.

Also, telegram.path-to-certificate will only be used, if you configure the keystore.

Proxy support

For proxy support you need to set all of the following properties:

  • telegram.proxy.type
  • telegram.proxy.host
  • telegram.proxy.port

To enable authentication for a proxy your need to set telegram.proxy.user and telegram.proxy.password.

General

In a regular spring boot setting these properties can be set in your application.properties or application.yml.

For more information on how these configuration options work, please refer to the TelegramBots Java API.

Example

An implementation example is available too.

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].