skip to Main Content

Sending Image via Telegram-Bot API with PHP – Telegram API

I have this function function suspendido($chat_id,$foo) { $TOKEN = "blablalbal"; $TELEGRAM = "https://api.telegram.org:443/bot$TOKEN"; $url. = "https://zrabogados-pruebas.xyz/bot/404.png"; $query = http_build_query(array( 'chat_id'=> $chat_id, 'photo'=> $url, 'text'=> $foo, 'parse_mode'=> "HTML", // Optional: Markdown | HTML )); $response = file_get_contents("$TELEGRAM/sendMessage?$query"); return $response; } I…

VIEW QUESTION

chat_id Eror in python-telegram-bot – Telegram API

I want to make a keyboard in telegram-bot, but I can't find chat_id. How can fix it? Code: from telegram.ext import Updater, CommandHandler from telegram import ReplyKeyboardMarkup updater = Updater(Token) def start(update, _) : update.message.reply_text('Hi {}!'.format(update.message.chat.first_name)) def service_keyboards(bot,update) : chat_id…

VIEW QUESTION
Back To Top
Search