Questions tagged [python-telegram-bot]

This is a Python library that wraps around the Telegram Bot API. Note that this is not a general tag for "Telegram bots written with Python", but only for question about this particular library.

This is a library that wraps around the bot HTTP API. It is compatible with only (please check the PyPi/GitHub page for detailed info).

Telegram Bot API

The Telegram Bot API is an HTTP-based interface created for developers keen on building bots for Telegram.

1454 questions
-1
votes
1 answer

How to just take the numbers with MessageHandler

i am making a telegram bot and i have a question : How can i just take the numbers and deny other type to run callback with MessageHandler? my framework is python-telegram-bot
ex3p
  • 13
  • 2
-1
votes
2 answers

Can a telegram bot change a supergroup from private into public?

I've been using python-telegram-bot and I want my telegram bot to change supergroup's type from public into private, but I'm not able to find any api about this. Can anyone tell me is it possible to make a telegram bot to change supergroup's type?
-1
votes
2 answers

ways to get chat id of a phone number in telegram bot

I want to know what are the ways to get the chat id of phone numbers in telegram bot programming. I have a small project that I need to get Chatid of a group of phone numbers in telegram very fast .
-1
votes
1 answer

how can i know my telegram-bot user pressed a button?

I'm developing a telegram bot with python-telegram-bot. I send a message and a link (message body + inline keyboard button): my question is how can I know if user clicked () on the link? I want to do something if he clicked on link btn =…
-1
votes
1 answer

send message from metatrader4 to telegram bot in python

I am working on automating the trade signals generated in metatrader 4. Idea is to encode the buy/sell signals into message and send to a python telegram receiver code which will decode the message and take appropriate action (like placing orders…
-1
votes
2 answers

How can I get the membercount of the group without the telegram bot api?

How can I get the membercount of the group without the telegram bot api?And is there any way to get the membercount of group which I am not admin?plz help me Thanks.
-1
votes
1 answer

How to create bot Telegram to send commands RaspberryPi

I want to know to create bot and send message on Telegram, and send command for example /commandPi sudo apt-get update ... You need yo configure the bot with info and create a token but i dont know how to program it. You need to modify the "bot…
Chuflitas
  • 105
  • 1
  • 11
-1
votes
4 answers

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 picture? Thank you. UPDATE I figure out a little bit, but…
Alex Nikitin
  • 841
  • 1
  • 10
  • 29
-1
votes
2 answers

RuntimeError: 'path' must be None or a list, not on python-telegram-bot

I want to develop a bot in telegram using spyder: from telegram.ext import Updater bot = telegram.Bot(token='***') I get the above error.
keramat
  • 4,328
  • 6
  • 25
  • 38
-1
votes
1 answer

Telegram photo bot

I'm writing a telegram bot as a part of a larger project but i can't seem to get the bot to write a new file every time it downloads an image, instead it just overwrites the first image it recieved. another problem i came across is that it downloads…
BluePython
  • 17
  • 4
-1
votes
3 answers

Send A message with A different font with aTelegram bot

I want to create a Telegram Messenger bot with framework python-telegram-bot! Now, the bot must send a message with a specific font. This means the bot sends a message with a different and beautiful font - a font different from the Telegram…
Sajjad
  • 41
  • 1
  • 4
  • 13
-1
votes
1 answer

telegram bot stopped responding with no errors in apache log file

I was testing my bot (which is written in python and served via Apache on a vps by digital ocean) and it suddenly stopped responding. I checked Apache's error logs file but there were nothing relevant. so there were no errors. Then I reassigned…
-1
votes
2 answers

Telegram bot double /start

I have a telegram bot and it works correctly. But if you send one more time /start it begins to answer twice the same thing. How can I repair that?
-1
votes
1 answer

Send different global message in telegram bot

I'm writing telegram bot but i have a problem.I have a database that store my users's user ID After finishing code and running bot , when my bot users become more i can send them commercial post and earn money ,or when i add new features to my bot…
-1
votes
1 answer

I there any way to write any code to get member for telegram channel?

I was reading any answer for this question but no one knows if there any code for any language for get telegram member for channel.if any one knows how it work please answer this question.