-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update Add the blockquote function formatting.py #2092
Conversation
|
I made the code myself |
Atualizando.o.telebot.mp4 |
To add this formatting I researched Markdown formatting here: https://markdown.net.br/sintaxe-basica/ |
You cannot invent markdown yourself. https://core.telegram.org/bots/api#sendmessage Here are all markdown options, available for sending messages. |
I didn't create something that doesn't exist, in the latest telegram updates, quote were added, which allows the user to format the message using the quote to highlight the message, what I did was just put the quote to work in the telebot library, I didn't create the quote it already exists in Markdown format, I just added the Markdown formatting quote to the formatting.py code that is located in the telebot folder. Take a look at the example below. Hello, this is how to put the quote in messages in telegram.
Test my code and see for yourself if it works.
Put this in formatting.py now put
Add quote inside formatting_example.py which is in git hub
|
Btw, since the bot api got released, we can think of this again |
Could you also implement hcite before we merge it? |
@Badiboy this should work according to bot doc, are you ok with this now? |
I did not tested it. If it confirms to the bot api - why not. |
Doc said to remove space too @Badiboy check out |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Commen is given above.
I've added https://github.com/HACKS-EXE/Zaquiles-PY-TeleBot-API/blob/master/telebot/formatting.py#L84-L112
|
For this code to work it needs the approval of #2091 and the other way around too
To make this change I researched formatting: https://markdown.net.br/sintaxe-basica/#blockquote-muiltiple-paragraphs
My tests are in the comments