How to send Emoji with Telegram Bot API?

I need to send messages containing emoji with my Telegram Bot. So I copy/paste emoji code :nine: for example, in my message text and send it to a user, BUT emoji didn`t work. This is my sample...

Trying to send user video from telegram bot using curl

using command: curl -s _X POST "https://api.telegram.org/bot<token>/sendVideo -F chat_id=<chatID> -F video="@myvideo.mp4" sends a video file "myvideo.mp4" ok to the telegram user chatID from...

Telegram + PHP (Windows 7): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found

I'm trying to move my first steps in Telegram and I'm also a newbie in PHP ...... I've configured, on my Windows 7 pc, Apache 2.4 with PHP 5.6.14 and SSL and it's working fine in http and...

Command to check if a variable inside of a string exists

I need a user to input two numbers to form a range and make an error message if one or both numbers are not inputed ,or a letter is inputed. What i do now...

How do I have my Bot respond with arguments?

So I've built a Telegram bot, which can receive the following commands: /list /info 123 This works great, as I can catch /info and pass the additional arguments as ints. But, sadly, the Telegram...

How to add a bot to a Telegram Group?

I've been trying to add a bot to my Telegram group in Android Device but I am not able to do so. I tried @bot_name, /bot_name, but it doesn't work. Is it possible to add a bot to the group or...

Telegram sends duplicate POST JSON requests to webhook

I am trying to develop city bot for telegram, but meet a problem. After sending message to bot, Telegram sends 2 duplicate requests to a webhook url. Webhook script works twice and sends twice...

Can't get updated messages from Telegram Bot after script started

I'm trying to create a script to operate my bot via Bot API, I'm using simple PHP file on my server, which has a set Webhook so that Telegram refers to this file each time when message is...

Telegram does not escape some markdown characters

Telegram does not escape some markdown characters, for example: This works fine _test\test\ But this return parse error *test\test\ What I do wrong?

java.lang.ClassNotFoundException: xsbt.CompilerInterface with PlayFramework

What can i do with this? I try to create bot for telegram with deploy on heroky. But i got this exception, when i Run my project. I using IntelliJ IDEA Ultimate. PlayFramework with sbt. Database -...

Can I get a Telegram bot to put some text into the user's message input box?

I'm building a Telegram bot, in which the user sends messages, which are later posted to another website. The bot can often give the user a suggestion of what to write, but the user must have a...

How to download all shared media files from a telegram group?

There is a telegram group with more than 40,000 shared files in it. Is there any bot to download all of them all at once? If not is there any telegram api script method using python to download...

How do i send mp3 file with python using telegram bot

How can I send an MP3 audio file to a Telegram Bot using the open-source Python library Requests? I wrote the following code: URL = 'api.telegram.org/bot'+TOKEN+'/sendAudio' af = open("temp.mp3",...

Python Telegram Api. How to pick a random image from directory?

I figure out how to pick a specific picture in a directory. bot.send_photo(chat_id=chat_id, photo=open('/Users/Iamawesome/Desktop/test/599d6f972525a.jpg', 'rb')) But how can I pick a random...

How can Downloading a big fIle from Telegram bot API

Ok, I know in telegram bot API we can get the file_id and send it to getFile method and it will give us the file path so we can download it with an URL. BUT it has a maximum limit of the file size...

Telegram Bot API setChatPhoto()

So I already have a bot with implementations for several method, but with the setChatPhoto() I am just unable to get past the following error: {"ok":false,"error_code":400,"description":"Bad...

How to fix ImportError: No module named 'telebot'

I'm configuring a bot to send alerts from Zabbix, so I installed Python and the modules: sudo apt install python python-pip python-setuptools After that, I installed the bot API to use on...

How to send an input request to user and store the answer in telegram bot

I'm writing a telegram bot in golang using github.com/Syfaro/telegram-bot-api. And I need following: A user sends a command Bot asks the user a question The user answers Then bot does some...

send bulk messages to my telegram bot subscribers with chat.id

I want to send messages with my telegram bot to subscribers. I already store all chat ids from my subscribers in TXT file every chat id in 1 line. now I need help to access this file and make...

How to have the message text showed up in my command line?

I use pytelegrambotapi library to make my bot in telegram. Here is my code: import config import telebot bot = telebot.TeleBot(config.token) @bot.message_handler(commands=['start']) def...

Telegram CPP/Mt4 how to listen to messages in a invite-only channel, application has to be distributed

I'm working on an MT4 expert advisor and I just can not solve my scenario, maybe you guys can help me out. Scenario A user installs the EA (expert advisor) on MT4, there is a invite-only Telegram...

python3 aiogram. How to send message to user_id

from aiogram import Bot import config def send_message(message): operator = Bot(config.operator_token) operator.send_message(config.user_id, message) def main(): ...

Does Telegram API have opportunity to send photo album with text?

I see it can send a single photo with text and an album without text. But I need to send album and text in one message. Is it possible?

Python Bot Telepot error 'raise KeyError('No suggested keys %s in %s' % (str(keys), str(d)))'

I have already implemented a lot of telegram bots with Telepot 12.7 and never had a single problem. Now, suddenly, after adding my bot to a group it started spamming this error message: raise...

Issues with Telegram Bot deployment to Heroku

I deployed a Python Telegram bot to Heroku, but the bot isn't responding. In terminal, typing "heroku logs -t" shows that the build succeeded, but there is nothing else shown when I send a command...

how to get an input from user from telegram bot in java?

i have created a telegram bot and now i need to ask user something , and save the input answer in a string . here i wrote a code : i want if the first command was "/mytext" , this "please enter...

How to delete a message when clicking on another button in Telebot?

When I click on the inline button, it will give me a text. And with each next press, he again sends the text. I want to make it so that when you click on a new button, the old message is deleted...

Creating a Welcome Bot Using python-telegram-bot

I have been moderating a telegram group for some time and I have had no issues using the python-telegram-bot package. I actually love it. However, I can't seem to get a functioning "Welcome...

How to handle and remove "joined the group" messages in python-telegram-bot?

I have created a bot to manage my group in telegram using python-telegram-bot. I would like the bot to handle and remove joined/left messages. I am not getting those messages as regular ones. Is...

my.telegram.org sends an ERROR when I want to create an API id/hash in API development tools section

I'm trying to get my API id/hash to create some bots for telegram , but in the API developmen tools section , when I enter my bot informations( name , shortname...) and click on create to get the...