PHPackages                             amohamed/telegram-atm - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. amohamed/telegram-atm

ActiveLibrary

amohamed/telegram-atm
=====================

This is a custom Telegram Service bot

055PHP

Since Jul 9Pushed 2y ago1 watchersCompare

[ Source](https://github.com/Abdallah-Tah/telegram-atm)[ Packagist](https://packagist.org/packages/amohamed/telegram-atm)[ RSS](/packages/amohamed-telegram-atm/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

TelegramAtm
===========

[](#telegramatm)

A custom Laravel package for interacting with the Telegram API.

Installation
------------

[](#installation)

Install the package via composer:

```
composer require amohamed/telegram-atm:dev-main
```

Configuration
-------------

[](#configuration)

Publish the package configuration file using:

```
php artisan vendor:publish --provider="Amohamed\TelegramAtm\TelegramAtmServiceProvider" --tag=migrations
```

Then, you can modify the published configuration file located at `config/telegramatm.php` with your Telegram bot's details.

Usage
-----

[](#usage)

Inject `Amohamed\TelegramAtm\TelegramAtmService` in your service or controller:

```
use Amohamed\TelegramAtm\TelegramAtmService;

class MyController extends Controller
{
    protected $telegramAtmService;

    public function __construct(TelegramAtmService $telegramAtmService)
    {
        $this->telegramAtmService = $telegramAtmService;
    }

    public function someMethod()
    {
        // Use the telegramAtmService instance
    }
}
```

Available Methods
-----------------

[](#available-methods)

Here are the available methods you can use:

### `getApiUrl($method)`

[](#getapiurlmethod)

This method returns the Telegram API URL for the given method.

- `$method` (string): The Telegram API method.

### `sendRequest($url, $params = [])`

[](#sendrequesturl-params--)

This method sends a request to the Telegram API.

- `$url` (string): The Telegram API URL.
- `$params` (array): The request parameters.

### `getMe()`

[](#getme)

This method returns information about the bot.

### `sendMessage($chat_id, $text, $parse_mode = null, $disable_web_page_preview = null, $disable_notification = null, $reply_to_message_id = null, $reply_markup = null)`

[](#sendmessagechat_id-text-parse_mode--null-disable_web_page_preview--null-disable_notification--null-reply_to_message_id--null-reply_markup--null)

This method sends a text message to a chat.

- `$chat_id` (int|string): The chat ID.
- `$text` (string): The message text.
- `$parse_mode` (string|null): The parse mode of the message text.
- `$disable_web_page_preview` (bool|null): Whether to disable the web page preview.
- `$disable_notification` (bool|null): Whether to disable the notification.
- `$reply_to_message_id` (int|null): The ID of the message being replied to.
- `$reply_markup` (array|null): The reply markup.

### `forwardMessage($chat_id, $from_chat_id, $message_id, $disable_notification = null)`

[](#forwardmessagechat_id-from_chat_id-message_id-disable_notification--null)

This method forwards a message from one chat to another.

- `$chat_id` (int|string): The chat ID.
- `$from_chat_id` (int|string): The chat ID of the source chat.
- `$message_id` (int): The message ID.
- `$disable_notification` (bool|null): Whether to disable the notification.

### `sendPhoto($chat_id, $photo, $caption = null, $parse_mode = null, $disable_notification = null, $reply_to_message_id = null, $reply_markup = null)`

[](#sendphotochat_id-photo-caption--null-parse_mode--null-disable_notification--null-reply_to_message_id--null-reply_markup--null)

This method sends a photo to a chat.

- `$chat_id` (int|string): The chat ID.
- `$photo` (string): The photo file path or URL.
- `$caption` (string|null): The photo caption.
- `$parse_mode` (string|null): The parse mode of the photo caption.
- `$disable_notification` (bool|null): Whether to disable the notification.
- `$reply_to_message_id` (int|null): The ID of the message being replied to.
- `$reply_markup` (array|null): The reply markup.

### `sendAudio($chat_id, $audio, $caption = null, $parse_mode = null, $duration = null, $performer = null, $title = null, $disable_notification = null, $reply_to_message_id = null, $reply_markup = null)`

[](#sendaudiochat_id-audio-caption--null-parse_mode--null-duration--null-performer--null-title--null-disable_notification--null-reply_to_message_id--null-reply_markup--null)

This method sends an audio file to a chat.

- `$chat_id` (int|string): The chat ID.
- `$audio` (string): The audio file path or URL.
- `$caption` (string|null): The audio caption.
- `$parse_mode` (string|null): The parse mode of the audio caption.
- `$duration` (int|null): The duration of the audio file.
- `$performer` (string|null): The performer of the audio file.
- `$title` (string|null): The title of the audio file.
- `$disable_notification` (bool|null): Whether to disable the notification.
- `$reply_to_message_id` (int|null): The ID of the message being replied to.
- `$reply_markup` (array|null): The reply markup.

### `getUserSession($chat_id)`

[](#getusersessionchat_id)

This method returns the user session data for the given chat ID.

- `$chat_id` (int|string): The chat ID.

### `getCommand($text)`

[](#getcommandtext)

This method returns the command from the given text.

- `$text` (string): The text.

### `getCommandParams($text)`

[](#getcommandparamstext)

This method returns the command parameters from the given text.

- `$text` (string): The text.

### `deleteUserSession($chatId)`

[](#deleteusersessionchatid)

This method deletes the user session data for the given chat ID.

- `$chatId` (int|string): The chat ID.

License
-------

[](#license)

This package is open-sourced software licensed under the MIT license.

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity22

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/7a61545d3e749019b5ae58160977437da6b0037203955060fb9829807e22c1b4?d=identicon)[abdallah-tah](/maintainers/abdallah-tah)

---

Top Contributors

[![Abdallah-Tah](https://avatars.githubusercontent.com/u/96321216?v=4)](https://github.com/Abdallah-Tah "Abdallah-Tah (5 commits)")

### Embed Badge

![Health badge](/badges/amohamed-telegram-atm/health.svg)

```
[![Health](https://phpackages.com/badges/amohamed-telegram-atm/health.svg)](https://phpackages.com/packages/amohamed-telegram-atm)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
