Skip to content

Feature/user data#1

Open
nickborovik wants to merge 3 commits intoartembakhanov:masterfrom
nickborovik:feature/UserData
Open

Feature/user data#1
nickborovik wants to merge 3 commits intoartembakhanov:masterfrom
nickborovik:feature/UserData

Conversation

@nickborovik
Copy link
Copy Markdown

@nickborovik nickborovik commented Sep 12, 2020

Hi! Thanks for useful calendar!
When i used it, i needed to transfer data between calendars.
So i thought maybe someone like me needed to use this feature later.

Also for this feature i needed to replace split symbol from '_' to '#'.
It's because in **kwargs you can use variables with underlines like 'some_date'.

return inn

def build(self):
def build(self, **kwargs):
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it would be nice to throw an exception here if the size of the callback data is more than 64 bytes.
Previously, it was guaranteed that no telegram API exception occurs.
Please, see: https://core.telegram.org/bots/api#inlinekeyboardmarkup

Comment on lines +88 to +89
if len(list(chain.from_iterable(kwargs.values()))) > 22:
raise Exception("Too long string passed in value of kwargs or too many values")
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if i got you right, here an example of exception

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants