Skip to content

Al-Muhandis/fp-telegram

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

0ca1d1d · Jan 25, 2025
Jan 25, 2025
Nov 18, 2024
Nov 24, 2024
Nov 24, 2024
Dec 3, 2023
Oct 24, 2024
Nov 25, 2023
Oct 11, 2024
Oct 7, 2024
Nov 10, 2024
Nov 10, 2024
May 3, 2020
Jan 25, 2025
Feb 6, 2020
Nov 24, 2024
Nov 18, 2024
Nov 18, 2024
Nov 18, 2024
Jun 10, 2023
Jun 11, 2023
Jan 25, 2025
Aug 2, 2018
Oct 13, 2021
Nov 28, 2024
Jan 25, 2025
Oct 7, 2024

Repository files navigation

fp-telegram

Library for working with Telegram bots API in FreePascal/Lazarus

FreePascal wrapper classes for Telegram bot's API. You can use it in your own working projects. Please join if you want to help of the development this library.

The library does not use any third-party libraries, besides the built-in FPC. You can use it both independently and together with other libraries, for example, as a plug-in to Brook-framework/Brook4FreePascal

Design-time

Library has two packages: run-time (fptelegram.lpk) and design-time (fp-telegram_dt.lpk). fp-telegram_dt.lpk contains component DTLongPolBot. It is ready-made longpolling bot which you can use for the rapid developments of longpolling telegram bots. Look about longpolling here. This component ca be used in GUI and non-GUI applications, daemons and services and even in web-server (however, in the latter case, it is preferable to use a webhook mechanism to receive updates. About webhook is here

Examples

You can find in the examples folder various architectures for using the library: long polling and webhook, single-threaded and multithreaded, using the designtime component and runtime classes