Build a Telegram Bot

Overview

Telebot

Build a Telegram Bot.


Clone from GitHub

git clone https://github.com/MSFPT/Telebot

Get Started


  
  require('Telebot/index.php');

  $TeleBot = new Telebot('TOKEN');

  $TeleBot->Bot(Method:String, Params:array));

?>

Example

'Markdown' , 'reply_markup'=> $inline_btn ) ); $TeleBot->Bot('sendMessage', array( 'chat_id'=> $ChatID , 'text'=> "Content : \n $Content" , 'reply_markup'=> $keyboard_btn ) ); ?>">

  
  require('Telebot/index.php');
  
  $TeleBot = new Telebot('TOKEN');

  $Content = file_get_contents('php://input');

  $Data = json_decode($content, true);

  $ChatID = $data['message']['chat']['id'];
  $Name = $data['message']['chat']['first_name'];

  $inline_btn = array('inline_keyboard'=>array(
    array(
      array(
        'text'=> 'MSFPT' ,
        'callback_data'=> 'test_callback'
      )
    ),
    array(
      array(
        'text'=> 'Telegram' ,
        'url'=> 'https://t.me/+nF_ylRxXRKFiMDc0'
      ) ,
      array(
        'text'=> 'GitHub' ,
        'url'=> 'https://github.com/msfpt'
      )
    )
  ));

  $keyboard_btn = array(
    'resize_keyboard'=> true ,
    'keyboard'=> array(
        array(
          array(
            'text'=> ' Share Phone Number ' ,
            'request_contact'=>true
          )
        ) ,
        array(' Demo_1 ',' Demo_2 ')
  ));

  $TeleBot->Bot('sendMessage', array(
    'chat_id'=> $ChatID ,
    'text'=> "Hello [".$Name."](tg://user?id=".$ChatID.")" ,
    'parse_mode'=> 'Markdown' ,
    'reply_markup'=> $inline_btn
    )
  );

  $TeleBot->Bot('sendMessage', array(
    'chat_id'=> $ChatID ,
    'text'=> "Content : \n $Content" ,
    'reply_markup'=> $keyboard_btn
    )
  );

?>

Telegram Bot API

You might also like...
Simple telegram auto reminder BOT with PHP

Telebot Script Telegram BOT Auto Reminder Dibuat pake PHP OOP Sebenernya bukan buat dipublish sih, ini cuma buat praktek PHP OOP sama praktek Commit &

Simple php telegram bot.
Simple php telegram bot.

PHPTGBot Description Simple php telegram bot. Just for fun 🚧 Work In Progress 🚧 Maybe found error, since im not tested yet! Still on working, so be

A simple php telegram bot to check if the bin is valid or not!

Bin-Checker A simple php telegram bot to check if the bin is valid or not! Deploy FORK the Repo by clicking HERE Add your bot token in LINE 12 THEN DE

Bin checker telegram bot
Bin checker telegram bot

BIN Checker Bot Test Bot: Bin Checker Bot Env API_TOKEN Bot token. START_MSG Custom start message. Deploy Heroku Railway ⚠ Warn: Still not Tested on R

This app remembers todo list in every specified time (e. every minute, hour, day etc) through telegram bot

remember_todo_list This app remembers todo list in every specified time (e. every minute, hour, day etc) through telegram bot This project includes tw

PHP Source - Telegram Bot - Standart Method

Telegram Bot- yaratish uchun mo'ljallangan standart metod asosida ishlovchi, PHP tilida yozilgan kod Dasturchilarning eng yaxshi ko'rgan odati c/p bo'

The Telegram bot framework that doesn't drive you nuts.
The Telegram bot framework that doesn't drive you nuts.

Nutgram The Telegram bot framework that doesn't drive you nuts This framework takes advantage of the latest PHP 8 features, and tries to make the spee

Gateway-pay-bot - Telegram robot for donating or paying + authentication

gateway-pay-bot این ربات جهت دونیت شدن یا پرداخت های شخصی نوشته شده است دارای قابلیت احراز هویت است درگاه های متصل به ربات : زرین پال نکست پی ایدی پی

A Php Checker Bot For Telegram.
A Php Checker Bot For Telegram.

A Card Checker Bot For Telegram Based On Telegram.

Owner
Msf
fools call effort talent ...
Msf
🤖 Telegram Bot API PHP SDK. Lets you build Telegram Bots easily! Supports Laravel out of the box.

Telegram Bot API - PHP SDK Telegram Bot PHP SDK lets you develop Telegram Bots in PHP easily! Supports Laravel out of the box. Telegram Bot API is an

Irfaq Syed 2.5k Jan 6, 2023
Build a Telegram Bot

Build a Telegram Bot

Msf 7 Sep 29, 2022
A telegram bot to check credit cards. written in php & py

MRBANKER BOT A telegram bot to check credit cards. written in php & py. You can find me on telegram STEP1: goto botfather create a bot copy the token

Nitin1818 48 Dec 30, 2022
NovaGram - An elegant, Object-Oriented, reliable PHP Telegram Bot Library

An elegant, Object-Oriented, reliable PHP Telegram Bot Library Full Documentation • Public support group Examples • Features • Installation ?

Gaetano 165 Jan 6, 2023
A tool for sending fast and managed messages to Telegram bot users

???? HiToAll A tool for sending fast and managed messages to Telegram bot users About In some telegram bots programmed with php language, if there are

Matin Najafi 3 Oct 3, 2021
telegram bot for sell virtual number

Telefake Telegram bot for sell virtual number (fully automatic) Installation create bot in telegram upload script in website with php and ssl (https)

reza malekpour 4 Aug 20, 2022
laravel package untuk memudahkan penggunaan MCA dengan Telegram Bot USDI di aplikasi Universitas Udayana.

MCA KubeMQ Laravel laravel package untuk memudahkan penggunaan MCA dengan Telegram Bot USDI di aplikasi Universitas Udayana. Motivasi Proyek ini berfu

Ristek USDI 1 Nov 17, 2021
Telegram bot for CC Checker with hella lotta features.

SDMN CHECKER BOT Telegram bot for CC Checker with hella lotta features. ?? Table of Contents Dependencies / Limitations Future Scope Setting up a Hero

Rohithaditya 5 Dec 19, 2022
Integrate Your PHP Code With Telegram Bot API for Beginner

Documentation[https://core.telegram.org/bots/api] Resource[https://github.com/bachors/KBBI.sql] Integrate Your PHP Code With Telegram Bot API for Begi

Nova Andre Saputra 1 Oct 19, 2021
Create and manage advanced polls with this Telegram Bot which has many features available!

MasterPollBot Create and manage advanced polls with this Telegram Bot which has many features available! Requirements Local Telegram Bot API or a webh

NeleB54Gold 7 Oct 21, 2022