{"repo":"aNNiMON/tgbots-module","free":true,"listed":false,"github":"https://github.com/aNNiMON/tgbots-module","clone":"git clone https://github.com/aNNiMON/tgbots-module.git","description":"Enhanced Java telegram bots runner built on top of the Telegram Bots library","language":"Java","stars":22,"topics":["telegram-bot","webhook","java-library","java","telegram"],"license":"MIT","category":"chat-messaging","readme_excerpt":"tgbots-module Enhanced Java telegram bots runner built on top of the Telegram Bots library. Why? - I want separate projects per bots. - I want to easily switch between long polling and webhook methods without recompiling the application. - I want to easily disable bots without recompiling the application. - I want yaml configs to store bot tokens and other data. - I want different profiles for configs. - I want command system with roles support. - I want localization support. Examples - @tgbotsmodulebot source code - @lastkatkatbot source code - @artific intellig bot source code - @effybot source code Usage - Add gradle dependency: - Or if you don't want to use webhooks: - Implement BotModule interface: - [Optional] Add main method to run single project: - [Optional] Add yaml configuration support: testbot.yaml - Fill in config.yaml (See Webhooks examples): - Happy bots developing: Now you can easily switch between webhook and long polling methods by changing the webhook: enabled flag in config,yaml . Or you can create config-test.yaml and run the test profile: Webhooks Heroku Heroku starts on a random port, you can get a value from the environment property PORT : Self-hosted Use certgen.sh to generate a certificate (replace SERVERIPADDRESS with the server's IP address): The keystore password will be asked several times during the generation of the certificate. Don't forget to export it: Specify generated keystore.jks and public cert.pem paths and your SERVERIPADDRESS in conf","default_branch":null,"files":null,"tree":[],"storefront":"/r/aNNiMON","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/aNNiMON/tgbots-module/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}