Skip to content

Instantly share code, notes, and snippets.

@LifeofGeek
LifeofGeek / telebot.php
Last active June 3, 2017 13:19
Gist to Integrate Telegram bot with Program O Chatbot. Read the full tutorial @ https://www.lifeofgeek.com/fully-responsive-telegram-bot-php-tutorial/
<?php
/**
* Telegram bot works with Program O
* Tutorial Link: https://www.lifeofgeek.com/fully-responsive-telegram-bot-php-tutorial/
*/
define('BOT_TOKEN', '123456789:ABC45N5UgS6Fa6Zgl14ThHkTU9Q2RyFdDSw'); //Replace with your bot token
define('API_URL', 'https://api.telegram.org/bot'.BOT_TOKEN.'/');
// Program O Params
$bot_id = '1'; //Program O bot ID
$siteurl = 'https://www.lifeofgeek.com/bot'; // Site url including https where program o installed
@LifeofGeek
LifeofGeek / fbpagebot.php
Last active April 19, 2018 01:21
Gist to Integrate Facebook Messenger bot with Program O Chatbot. Read the complete Guide/Tutorial @ https://www.lifeofgeek.com/build-responsive-facebook-messenger-bot/
<?php
/**
* Webhook for Facebook Messenger Bot with Program O
* Tutorial Link: https://www.lifeofgeek.com/build-responsive-facebook-messenger-bot/
*/
$access_token = "EAAT06zIHufkBAHewZCWZCBYAWKGJlS5uVOS3aEoIqSROiKZAuR8"; //Replace with your page access token
$verify_token = "lifeofgeek"; //Replace with your app verify token
$hub_verify_token = null;