Skip to content
Renat Suleymanov edited this page Mar 27, 2025 · 4 revisions

Installation Guide

Installing fp-telegram via Online Package Manager (OPM)

fp-telegram can be installed directly from the Online Package Manager (OPM) in Lazarus.
There are two installation options available:

  1. From the OPM repository (stable version).
  2. From an external source (latest release from GitHub).

To install via OPM:

  1. Open Lazarus IDE.
  2. Go to PackageOnline Package Manager.
  3. Search for fptelegram.
  4. Select the package and click Install.
  5. Restart Lazarus to apply the changes.

изображение


Installing the Latest Version from GitHub

If you need the latest features and fixes, it's recommended to install fp-telegram from the GitHub repository.

Steps to install from source:

  1. Clone the repository or download the latest release:

    git clone https://github.com/Al-Muhandis/fp-telegram.git
  2. Open Lazarus and navigate to Package → Open Package File (.lpk).

  3. Choose either:

  • fptelegram.lpk or fptelegram_ex.lpk (for runtime usage).

  • fptelegram_dt.lpk (for design-time installation in Lazarus IDE).

  1. Click "Compile", then "Use" → "Install".

  2. Lazarus will restart and apply the package.

изображение


Using fp-telegram in Lazarus Projects

fp-telegram can be used in two ways:

  • Runtime libraries (fptelegram.lpk or fptelegram_ex.lpk) – These are required to use the framework in your projects.

  • Design-Time package (fptelegram_dt.lpk) – Installs the TDTLongPollBot component on the Lazarus IDE palette.

Installing TDTLongPollBot Component

  1. Install fptelegram_dt.lpk via Lazarus Package Manager.
  2. After Lazarus restarts, find the TDTLongPollBot component in the component palette (Misc tab).
  3. Drag and drop it onto a form.
  4. Set the bot token in the properties.

изображение

Now, you have a working bot without writing a single line of code! 🎉