Telegram Bots Framework

An application designed to make java bot development quicker, share server ressources.

License

License

GroupId

GroupId

org.simonscode
ArtifactId

ArtifactId

telegrambots.framework
Last Version

Last Version

3.0.2
Release Date

Release Date

Type

Type

jar
Description

Description

Telegram Bots Framework
An application designed to make java bot development quicker, share server ressources.
Project URL

Project URL

https://github.com/AnyTimeTraveler/telegrambots-framework
Source Code Management

Source Code Management

https://github.com/AnyTimeTraveler/telegrambots-framework

Download telegrambots.framework

How to add to project

<!-- https://jarcasting.com/artifacts/org.simonscode/telegrambots.framework/ -->
<dependency>
    <groupId>org.simonscode</groupId>
    <artifactId>telegrambots.framework</artifactId>
    <version>3.0.2</version>
</dependency>
// https://jarcasting.com/artifacts/org.simonscode/telegrambots.framework/
implementation 'org.simonscode:telegrambots.framework:3.0.2'
// https://jarcasting.com/artifacts/org.simonscode/telegrambots.framework/
implementation ("org.simonscode:telegrambots.framework:3.0.2")
'org.simonscode:telegrambots.framework:jar:3.0.2'
<dependency org="org.simonscode" name="telegrambots.framework" rev="3.0.2">
  <artifact name="telegrambots.framework" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.simonscode', module='telegrambots.framework', version='3.0.2')
)
libraryDependencies += "org.simonscode" % "telegrambots.framework" % "3.0.2"
[org.simonscode/telegrambots.framework "3.0.2"]

Dependencies

compile (2)

Group / Artifact Type Version
org.telegram : telegrambots jar 3.6
com.google.code.gson : gson jar 2.8.2

Project Modules

There are no modules declared in this project.

TelegramBotFramework

This is my Telegram Bot Framework.

It can currently run multiple bots and loads modules from a nearby folder. Modules can be added as seperate jar-files. With this, you can have multiple people add their own functionality to a bot. In the future, this framework should make it easier to share a server to run bots around the clock. I hope this will enable many programmers to run their bots on the same server to save computing resoucres.

Intended workflow:

  • Clone the template module

  • Add you bot's api-key or request access to someone else's bot

  • Test module via the integrated TestRunner

  • Create account via telegram

    If you are hosting the framework yourself:

    • Download the jar from maven
    • Run the jar
  • Upload your module via Telegram

  • Add module to bot via Telegram

  • Start the bot via Telegram

##In progress:

  • Managed Menus
  • AdminModule
  • Module upload via Telegram

TODO:

  • Finalize statefulness system (Currently reliant on JSON Serialisation)
  • Implement database (probably sqlite) backend for larger datasets
  • Implement global permission-system

##Done:

  • Upload to maven central
  • Make modules loadable during runtime (not just when the bot starts)
  • Implement universal help function
  • Implement uploading of new modules through telegram
  • Make modules stateful
  • Implement modules
  • Run multiple bots at the same time

Contributing

Simple:

  1. Fork/Clone this repository
  2. Implement your changes
  3. Submit a pull request

Modules that are already available (outdated due to structural changes)

NanoWriMoTracker

Tracks and compares the progress https://nanowrimo.org/

URL: https://github.com/Simon70/telegrambots.framework.NaNoWriMoTracker

Template Module

A good basis to start your module from

https://github.com/Simon70/telegrambots.framework.TemplateModule

Versions

Version
3.0.2
3.0.1
3.0