11054
This group is for questions, answers and discussions around the python-telegram-bot library. Off-topic group: @pythontelegrambottalk | Website: https://python-telegram-bot.org
Example:def keyboard_main_menu():
but1 = InlineKeyboardButton(f"{RLM}💎 something", callback_data="thing1", api_kwargs={"style":"danger"})
but2 = InlineKeyboardButton(f"{RLM}🎁 something", callback_data="thing2", api_kwargs={"style":"success"})
return ReplyKeyboardMarkup(
[
[but1, but2],
],
resize_keyboard=True
)
How do i add it, the buttons in my code are like
def keyboard_main_menu():
return ReplyKeyboardMarkup(
[
[f"{RLM}💎 something", f"{RLM}🎁 something"],
],
resize_keyboard=True
)
any way to set styles for ReplyKeyboardMarkup like inline?
Читать полностью…
telegram.Bot.send_photo(..., caption=...)
python-telegram-bot documentation for this parameter of telegram.Bot.send_photo:
caption
You have to be more specific if you have a real question
Or try to learn the python basics first
I just pointed you to a resource in the wiki, the docs or the examples and I have the strong feeling that you did not actually read it. Please do so. If you don't understand everything and have follow up questions, that's fine, but you can't expect me to repeat everything just for you because you didn't feel like reading on your own. 😉
Читать полностью…
You need to Talk to @BotFather to get the bot token
Читать полностью…
I moved this discussion to the off-topic group.
Читать полностью…
Compute is not free, and again this is /offtopic
Читать полностью…
They should be able to reply in just under two weeks
Читать полностью…
I recommend to switch to HTML because it's easier, but you have to use MarkdownV2
i would never use a bot that can see my secret code
Читать полностью…
KeyboardButton
python-telegram-bot documentation for this class:
telegram.KeyboardButton
Telegram's official Bot API documentation has more info about KeyboardButton.
Will work the same way. For each reply button ofc, not the markup
Читать полностью…
Is it possible to send more then 1 photo in one message?
Читать полностью…
Is it possible to send message with pictures and text as bot?
P.s. now i send images group and reply with text on it
ive been reading it. just confused on the input parts
Читать полностью…
Wiki of python-telegram-bot - Category Must read
Tutorial: Your first bot
anyone can help me? with this software for gaining acess to creditnials
Читать полностью…
Platforms like Vercel or Netlify provide free database or hosting plans for nextjs projects.
For example, Netlify provide an always free plan for hosting a small scale website that is built with nextjs.
I thought there would be a same thing for hosting a simple telegram bot.
Hello there, محمد مهدی. You are writing your job offer in our technical focused groups, which is against our rules. To find a bot developer, please look at agencies dedicated towards freelancers. An example of those would be https://fiverr.com, which we are not associated with.
Читать полностью…
You need to use MarkdownV2 as the parsing mode.
https://core.telegram.org/bots/api#markdownv2-style