pythontelegrambotgroup | Unsorted

Telegram-канал pythontelegrambotgroup - >>> telegram.Bot()

10206

This group is for questions, answers and discussions around the python-telegram-bot library. Off-topic group: @pythontelegrambottalk | Website: https://python-telegram-bot.org

Subscribe to a channel

>>> telegram.Bot()

I moved this discussion to the off-topic group.

Читать полностью…

>>> telegram.Bot()

can anyone please help, getting errror with new version

Input In [5], in main()
710 application = builder.build()
712 # Add handlers to the Application
--> 713 application.add_handler(MessageHandler(filters.TEXT & filters.update.ChannelPost, forward_message))
714 application.add_handler(CommandHandler('start', start))
715 application.add_handler(CommandHandler('updates', update_command))

AttributeError: module 'telegram.ext.filters' has no attribute 'update'

Читать полностью…

>>> telegram.Bot()

Anyone know about this firsthand?

Читать полностью…

>>> telegram.Bot()

Maybe my bot also needs to be an admin

Читать полностью…

>>> telegram.Bot()

Copying is forwarding without showing that it's forwarded

Читать полностью…

>>> telegram.Bot()

But I don't need to copy it, especially if there are photo or video or documents.

Читать полностью…

>>> telegram.Bot()

Hello, How could I delete forward from sign, Is it avaliable?

Читать полностью…

>>> telegram.Bot()

telegram.ext.CallbackContext.args
telegram.ext.CommandHandler.has_args

Читать полностью…

>>> telegram.Bot()

is it possible to attach second argument to command handler?
E.x: /all [message]
sends message to all users

Читать полностью…

>>> telegram.Bot()

No conversation handlers are not designed that way currently. track the redesign at #2770

Читать полностью…

>>> telegram.Bot()

is here anyone send me exaample of the file like,

filters.Document.MimeType('audio/mpeg')
pls send me this file example i always find this as class audio not inside document

Читать полностью…

>>> telegram.Bot()

but hey if you want to, dont let me stop you. add it to the data param and, as explained in the docs, access it via context.job.data.

Читать полностью…

>>> telegram.Bot()

seems like it's not advisable to refactor out the job queue and command functions into one function then? From the documentation there doesn't seem to be a way to pass in the params

Читать полностью…

>>> telegram.Bot()

feel free to report spam to admins

Читать полностью…

>>> telegram.Bot()

Hey all, I'm trying to schedule a job using.... The job calls a function that can be called manually using a command, so I defined it with params (update, context). When I pass in update, context through the job scheduler function, I keep getting error

WARNING - Update "None" caused error "'coroutine' object is not callable"
NoneType: None


My scheduler code is
def setup_add_job(api):
async def set_job(update, context):
context.job_queue.run_repeating(_check_follows(api, context, update), interval=300, first=0, chat_id=update.message.chat_id)
await update.message.reply_text('Polling every 5 minutes!')
return
return set_job

Читать полностью…

>>> telegram.Bot()

Hey. You seem to be using the new version (>=20.0) of python-telegram-bot but your code is written for an older and deprecated version (<=13.15).
Please update your code to the new v20 by reading the release notes and the transition guide linked below.
You can also install a version of PTB that is compatible with your code base, but please note that the library has undergone significant changes in v20 and the older version is not supported anymore. It may contain bugs that will not be fixed by the PTB team and it also doesn't support new functions added by newer Bot API releases.

Читать полностью…

>>> telegram.Bot()

I'm not getting the showPopup() method to work. How am I supposed to chain it?

    function displayPopup() {
Telegram.WebApp.showPopup({
message: "Your message here",
buttons: [
{ text: "OK" },
{ text: "Cancel", type: 'negative' } // Optional 'negative' style
],
onClose: () => {
console.log('Popup closed');
}
});
}

Читать полностью…

>>> telegram.Bot()

https://core.telegram.org/bots/faq#what-messages-will-my-bot-get

Читать полностью…

>>> telegram.Bot()

Hi my bot sometimes doesn't respond if I don't tag it in the command.

But after I tag it, it wakes up and starts responding like normal.

Group privacy is disabled. Do you know what else can fix it

Читать полностью…

>>> telegram.Bot()

ChatMemberUpdated
python-telegram-bot documentation for this doc:
telegram.chatmemberupdated

Читать полностью…

>>> telegram.Bot()

Bot.copy_message
python-telegram-bot documentation for this method:
telegram.Bot.copy_message

Telegram's official Bot API documentation has more info about copyMessage.

Читать полностью…

>>> telegram.Bot()

How do I reliably detect when a member enters or leaves a group of any size?

Читать полностью…

>>> telegram.Bot()

+CallbackContext.args+, +CommandHandler.has_args+ to enforce !search

Читать полностью…

>>> telegram.Bot()

Issue #2770: [Discussion:] ConversationHandler by Bibo-Joshi

Читать полностью…

>>> telegram.Bot()

Hey. What exactly do you want this for? This seems like an xy-problem to me.

Читать полностью…

>>> telegram.Bot()

Hello
How do I delete all CallbackQuery and buttons when the bot is stopped?

Читать полностью…

>>> telegram.Bot()

I mean you could, several ways. But in general one doesn't need it :D

Читать полностью…

>>> telegram.Bot()

you pass a function handle, not a called function to run_repeating

Читать полностью…

>>> telegram.Bot()

What exactly is going wrong? Is it trying to pass in my context into the called function of a scheduler?

Читать полностью…

>>> telegram.Bot()

Polling is a blocking process

Читать полностью…
Subscribe to a channel