pythontelegrambotgroup | Unsorted

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

7508

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()

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

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

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

>>> telegram.Bot()

Reading text from files or databases has nothing to do with PTB or servers

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

>>> telegram.Bot()

Or a json, or whatever

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

>>> telegram.Bot()

without needing to fully restart the bot?

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

>>> telegram.Bot()

telegram.ext.CallbackQueryHandler(..., pattern=...)
python-telegram-bot documentation for this parameter of telegram.ext.CallbackQueryHandler:
pattern

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

>>> telegram.Bot()

been wondering why this inlinekeyboard callback is not returning any query

    updater.dispatcher.add_handler(CallbackQueryHandler(button_callback))



# Define a function to handle inline keyboard button callbacks
def button_callback(update: Update, context: CallbackContext) -> None:
query = update.callback_query
data = query.data
print(data)


please any help?

or is bettter to move my code to v20?

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

>>> telegram.Bot()

you have to use telegram.ext.ChosenInlineResultHandler

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

>>> telegram.Bot()

You cant control size

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

>>> telegram.Bot()

I have inline enabled. Do i check the update in the inlinequery method where i check the query? Or do i need a separate message handler? If so what would the filter be? (regex for the response?)

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

>>> telegram.Bot()

I read that, couldn't understand how to implement in my code

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

>>> telegram.Bot()

the PTB team doesn't provide any video tutorials, no

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

>>> telegram.Bot()

Anyone with azure portal should dm vs unlimited otp bot grab

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

>>> telegram.Bot()

i have written a async function that will be only triggered by a user sending a contact with request_contact=True.
How can i set a filter for contacts?

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

>>> telegram.Bot()

bot users need to send message, picture video

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

>>> telegram.Bot()

You need to create an admin panel

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

>>> telegram.Bot()

Hello guys, I have a bot connected to a database, i want to add this bot to groups where it checks the users in the group in the database and if a specific attribute matches the user is removed from the group

How can i make the bot remove users

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

>>> telegram.Bot()

would this require a server, or can i do this using the python telegram bot library?

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

>>> telegram.Bot()

Sure, grab them on runtime from a database

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

>>> telegram.Bot()

Is it possible to have text auto-updating on a telegram bot with an ever-changing database?

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

>>> telegram.Bot()

It is better to move your code to v20, yes, because v13 will not get any updates or support;
in regards to the CQH: try to set a pattern

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

>>> telegram.Bot()

If you want something less bulky you could use inline buttons

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

>>> telegram.Bot()

telegram.ReplyKeyboardMarkup.resize_keyboard ᵀᴱᴸᴱᴳᴿᴬᴹ can shorten it

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

>>> telegram.Bot()

hi ,
can I control the size of ReplyKeyboadMarkup ?
it has 4 buttons and take almost half of the screen

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

>>> telegram.Bot()

It's a property of an update your bot receive when a user choses an inline result. IIRC you have to enable something from botfather to receive them.

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

>>> telegram.Bot()

please ask proper questions and stay on-topic

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

>>> telegram.Bot()

found my error: I was trying to use it with CommandHandler, not with MessageHandler

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

>>> telegram.Bot()

tried it already but doesn't work

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

>>> telegram.Bot()

Greetings! Does someone can recommend video lessons for creating bot-shop from scratch? (i am beginner in this) ☺️

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

>>> telegram.Bot()

Sorry, i don't understand what do you mean

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

>>> telegram.Bot()

Is there a way to detect if the current group/chat is public? one should be if Chat.username exists, are usernames mandatory for public chats?

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