This group is for questions, answers and discussions around the python-telegram-bot library. Off-topic group: @pythontelegrambottalk | Website: https://python-telegram-bot.org
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.
Reading text from files or databases has nothing to do with PTB or servers
Читать полностью…telegram.ext.CallbackQueryHandler(..., pattern=...)
python-telegram-bot documentation for this parameter of telegram.ext.CallbackQueryHandler:
pattern
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)
you have to use telegram.ext.ChosenInlineResultHandler
Читать полностью…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?)
Читать полностью…I read that, couldn't understand how to implement in my code
Читать полностью…the PTB team doesn't provide any video tutorials, no
Читать полностью…Anyone with azure portal should dm vs unlimited otp bot grab
Читать полностью…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?
bot users need to send message, picture video
Читать полностью…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
would this require a server, or can i do this using the python telegram bot library?
Читать полностью…Is it possible to have text auto-updating on a telegram bot with an ever-changing database?
Читать полностью…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
If you want something less bulky you could use inline buttons
Читать полностью…telegram.ReplyKeyboardMarkup.resize_keyboard ᵀᴱᴸᴱᴳᴿᴬᴹ can shorten it
Читать полностью…hi ,
can I control the size of ReplyKeyboadMarkup ?
it has 4 buttons and take almost half of the screen
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.
Читать полностью…please ask proper questions and stay on-topic
Читать полностью…found my error: I was trying to use it with CommandHandler, not with MessageHandler
Читать полностью…Greetings! Does someone can recommend video lessons for creating bot-shop from scratch? (i am beginner in this) ☺️
Читать полностью…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?