mhcifci / send_message_telegram

Sending messages via your Telegram Bot with PHP

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

send_telegram_php

Sending messages simply way your channel or group with php

Installing

Download with ZIP and extract any folder.

Example

<?php 

require 'ClassTelegram.php';

$token = "YOUR_TOKEN"; // Required!
$channelID = "YOUR_CHANNEL_ID"; // Required!

$telegram = new ClassTelegram($channelID, $token);
$telegram->sendMessage("Type the message you want to send!");

How to Find Channel ID?

First add your bot to the group you want to use and run this code and give your Channel ID

<?php 

require 'ClassTelegram.php';

$token = "YOUR_BOT_TOKEN"; // Required!

$telegram = new ClassTelegram($token);
echo $telegram->getChannelID(); // returns string

How to Find Bot Token?

tokenBot

About

Sending messages via your Telegram Bot with PHP

License:MIT License


Languages

Language:PHP 100.0%