Skip to content
This repository was archived by the owner on Nov 7, 2019. It is now read-only.
/ telebot Public archive

A Telegram architecture for build Telegram bots quickly with Spring MVC

Notifications You must be signed in to change notification settings

jaimesf/telebot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

telebot

###A Telegram architecture for build Telegram bots quickly with Spring MVC

To create your own bot:

  1. Extends your own service from TelegramBotService to return your bot token (Example on org.telegram.telebot.service.myservices.MyTelegramService).

  2. Create a Spring MVC controller like org.telegram.telebot.controller.MyWebhook

  3. Your request mapping must be consume JSON via "consumes = MediaType.APPLICATION_JSON_VALUE"

  4. Your request mapping must receive an Update with @RequestBody tag

  5. On this moment your controller must have a @ResponseStatus(HttpStatus.NO_CONTENT) tag. In the future you can respond directly from this request to clients.

  6. Inject your service in the controller.

  7. Implents your Bot.

  8. Open url /registerbot to register your webhook on telegram.

  9. Enjoy your bot

About

A Telegram architecture for build Telegram bots quickly with Spring MVC

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages