This group is for questions, answers and discussions around the python-telegram-bot library. Off-topic group: @pythontelegrambottalk | Website: https://python-telegram-bot.org
Hey. You seem to be using a version >=20.0 of python-telegram-bot
but your code is written for version <=13.15. Please either upgrade your code to v20 by reading the release notes and the transition guide linked below or install a version of PTB that is compatible with your code base.
Please note that we only provide support for the latest stable version and that the library has undergone significant changes in v20.
Hello guys, i need to make a payment bot and i need to receive webhooks for the payment. I'm thinking from switching from telegram servers to local servers for the both and integrate the bot with flask to be able to create the webhook. How would that ideally work. Or should i just have the flask script only create a webhook and listen for a receive and initiate the bot to process the payment which seems more like the ideal way i can go about this
Читать полностью…if you have seen "them", what part is not clear to you where the code waits for an user input
Читать полностью…Wiki of python-telegram-bot - Category Concepts & Important Elements
Working with Files and Media
Python is a programming language and here we have a Good library for make a telegram bot.
First learn python.
i didn't invent the "queued" conception, it's designed by PTB: there is update queue in Bot object
Читать полностью…Hi guys, just a question. I've a bot that registers the user when he joins in the group. So, suppose I've a group with 100 members and then I add my bot. How can I register these 100 users? Maybe can I mute them and to un-mute they need to click a button that invoke the registration?
Читать полностью…WHERE warn_settings.chat_id = %(param_1)s]
2020-12-29T14:27:47.078384+00:00 app[worker.1]: [parameters: {'param_1': '-1001432019207'}]
2020-12-29T14:27:47.078384+00:00 app[worker.1]: (Background on this error at: http://sqlalche.me/e/13/f405)
any fix ?
you are just trolling me
you just answerd me twice with a "sure" and a "no", of course you know what "update" is
i mean the Update
objects
you said "sure" they can be pickled by persistence
, but then "no" not the queued updates
so i'm confused
when i use dowenload_to_memory i get :
file_down.download_to_memory("image p")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'File' object has no attribute 'download_to_memory'
"
when i use dowenload_to_drive i get :
file_down.download_to_drive("image ph")
^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'File' object has no attribute 'download_to_drive'
"
after adding
update.message.from_user
the code simply skips to next line without waiting
yes I've seen them, but I'm unable to find out how to make the bot wait for input using async mode, can you you please check the code i added?
Читать полностью…Examples directory of python-telegram-bot:
conversationbot.py
how i can save photo received from user in folder from telegram bot
i found get_fille() but i dont know how i can use it
There is tons of ready to deploy examples in the repo sir
Читать полностью…how we can make bot using this repo
please help
Or pin a message with a button, asking everyone to click it to register their presence
Читать полностью…I moved this discussion to the off-topic Group.
Читать полностью…you can make a conversation handler persistent and save what ever result comes up during the conv in user_data or chat_data etc. and that gets pickled. also: you can specify what data you want to persist. if that helps...
Читать полностью…we are in an session are we? i just don't know what updates can the persistence help to save, so i asked
Читать полностью…what's a supergroup actually ? 😅 just a "normal" group that has groups like discussions endowed or what ?
Читать полностью…I don't know if this is PTB related: does telegram has the option to migrate a normal group to a supergroup? At group members will?
Читать полностью…Another question: from the docs
migrate
Messages that contain telegram.Message.migrate_from_chat_id or :attr: telegram.Message.migrate_from_chat_id