Document reply markup limits

This commit is contained in:
Lonami Exo
2018-08-07 12:46:05 +02:00
parent 9195bccb41
commit e3bf6e3330
3 changed files with 11 additions and 1 deletions

View File

@@ -418,6 +418,14 @@ class MessageMethods(UploadMethods, ButtonMethods, MessageParseMethods):
you have signed in as a bot. You can also pass your own
:tl:`ReplyMarkup` here.
All the following limits apply together:
* There can be 100 buttons at most (any more are ignored).
* There can be 8 buttons per row at most (more are ignored).
* The maximum callback data per button is 64 bytes.
* The maximum data that can be embedded in total is just
over 4KB, shared between inline callback data and text.
silent (`bool`, optional):
Whether the message should notify people in a broadcast
channel or not. Defaults to ``False``, which means it will