Skip to main content
Advanced Search
Search Terms
Content Type

Exact Matches
Tag Searches
Date Options
Updated after
Updated before
Created after
Created before

Search Results

38 total results found

TelegramBotAPI

This library is a framework for working with different workarounds for Telegram Bot API https://github.com/InsanusMokrassar/TelegramBotAPI

Krontab

This project was inspired by a Linux util Crontab. In context of this library you will have opportunity to set up scheduled running of some things. In the base realization it works on the Kotlin Coroutines

Kotlin
Coroutines
Library
Multiplatform

KSLog

Library with aim of simple logging on all platforms and opportunity to setup it with full customization

Introduction tutorial

TelegramBotAPI

It is step-by-step tutorial about how to start to write your first bot and what you should know about TelegramBotAPI library

Updates retrieving

TelegramBotAPI

In this chapter you will learn which ways currently implemented in library and how you can use it in different situations

Introduction tutorial

Krontab

Here will be described examples and some easy how-to-use steps and things

Describing

Krontab

In this chapter will be described how and why library things working as they working

Logic handling

TelegramBotAPI

In this chapter you will learn different ways to handle your bot logic

DSLs

TelegramBotAPI

Here will be described DSLs available in the tgbotapi library

PlaguBot

TelegramBotAPI

Before any bot project

TelegramBotAPI Introduction tutorial

There are several places you need to visit for starting work with any Telegram Bot framework on any language: Bots info introduction Telegram Bot API reference (you can skip it, but it could be useful to know some specific cases in Telegram Bot API) Any...

Including in your project

TelegramBotAPI Introduction tutorial

There are three projects: TelegramBotAPI Core - project with base for all working with Telegram Bot API TelegramBotAPI API Extensions - extension of TelegramBotAPI with functions for more comfortable work with Telegram Bot API TelegramBotAPI Utils Extensio...

First bot

TelegramBotAPI Introduction tutorial

Examples infoA lot of examples with using of Telegram Bot API you can find in this github repository The most simple bot The most simple bot will just print information about itself. All source code you can find in this repository. Our interest here will be ...

Proxy setup

TelegramBotAPI Introduction tutorial

In some locations Telegram Bots API urls will be unavailable. In this case all examples will just throw exception like: Exception in thread "main" java.net.ConnectException: Connection refused at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) at su...

How to use

Krontab Introduction tutorial

Previous pages Including in project buildSchedule Custom KronSchedulerYou always able to create your own scheduler. In this section will be presented different ways and examples around standard CronDateTimeScheduler builders buildSchedule. You can read ...

Including in project

Krontab Introduction tutorial

In two words, you must add dependency dev.inmo:krontab:$krontab_version to your project. The latest version presented by next badge: Notice about repository To use this library, you will need to include MavenCentral repository in you project build.gradle mave...

String format

Krontab Describing

As in crontab util, this library have almost the same format of string: Seconds Minutes Hours Days of months Months Years Timezone Offset Week days Milliseconds Range 0..59 0..59 0..23 0..30 0..11 Any Int Any Int 0..6 0..999 Suffix - - - - - - o w ms...

FAQ

Krontab Introduction tutorial

How oftern new versions are releasing? Not very often. It depend on libraries (coroutines, korlibs/klock) updates and on some new awesome, but lightweight, features coming. Where this library could be useful? First of all, this library will be useful for lo...

KrontabScheduler

Krontab Describing

KronScheduler is the simple interface with only one function next. This function optionally get as a parameter DateTime which will be used as start point for the calculation of next trigger time. This function will return the next DateTime when something must ...

Updates filters

TelegramBotAPI Updates retrieving

Due to the fact, that anyway you will get updates in one format (Update objects), some time ago was solved to create one point of updates filters for more usefull way of updates handling UpdatesFilter UpdatesFilter currently have two properties: asUpdateRece...

Heroku

TelegramBotAPI Updates retrieving

Preview readingIt is recommended to visit our pages about UpdatesFilters and Webhooks to have more clear understanding about what is happening in this examples page Heroku is a popular place for bots hosting. In common case you will need to configure webhooks ...

Webhooks

TelegramBotAPI Updates retrieving

In telegram bot API there is an opportunity to get updates via webhooks. In this case you will be able to retrieve updates without making additional requests. Most of currently available methods for webhooks are working on ktor server for JVM. Currently, next ...

Long polling

TelegramBotAPI Updates retrieving

Long polling is a technology of getting updates for cases you do not have some dedicated server or you have no opportunity to receive updates via webhooks. More about this you can read in wiki. Related topics Updates filters Long polling in this library Th...

Low-level work with bots

TelegramBotAPI Logic handling

The base version of library was done a lot of time ago and just got several additions related to improvements, updates in Telegram Bot API or some requests from our community. Base things There are several important things in context of this library: Request...

API Extensions

TelegramBotAPI Logic handling

API extensions is a module which you may include in your project in addition to core part. In most cases this module will allow just use syntax like bot.getUpdates() instead of bot.execute(GetUpdates()), but there are several other things you will achieve with...

Updates with flows

TelegramBotAPI Logic handling

Of course, in most cases here we will look up the way of using utils extnsions, but you may read deeper about updates retrieving here. Phylosophy of Flow updates retrieving In most updates retrieving processes there are two components: UpdatesFiler and its inh...

Behaviour Builder

TelegramBotAPI Logic handling

In the previous pages about updates handling and was mentioned that currently in the most cases you should use Flows. So, there is an improvement for that system which hide direct work with flows and allow you to create more declarative logic of your bot. Main...

Behaviour Builder with FSM

TelegramBotAPI Logic handling

Behaviour builder with FSM is based on the MicroUtils FSM. There are several important things in FSM: State - any object which implements State interface StateHandler (or CheckableHandlerHolder) - the handler of states StatesMachine - some machine which wo...

Exceptions handling

TelegramBotAPI Logic handling

Unfortunatelly, exceptions handling in this library is a bit difficult in some places, but that have at least two reasons: flexibility and usability. "In place" handling In case you know, where exceptions are happening, you may use several tools for exceptions...

Files handling

TelegramBotAPI Logic handling

According to the documentation there are several ways to work with files: By FileId By FileUrl (typealias for the FileId) By some MultipartFile (in Telegram Bot API it is multipart requests) Files receiving There are several cases you may need in your app t...