Skip to content

mhcifci/send_message_telegram

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages