mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Merge remote-tracking branch 'origin/dev-2.x' into dev-2.x
This commit is contained in:
commit
ef8dff092e
1 changed files with 1 additions and 1 deletions
|
|
@ -75,7 +75,7 @@ class CallbackData:
|
||||||
raise TypeError('Too many arguments were passed!')
|
raise TypeError('Too many arguments were passed!')
|
||||||
|
|
||||||
callback_data = self.sep.join(data)
|
callback_data = self.sep.join(data)
|
||||||
if len(callback_data) > 64:
|
if len(callback_data.encode()) > 64:
|
||||||
raise ValueError('Resulted callback data is too long!')
|
raise ValueError('Resulted callback data is too long!')
|
||||||
|
|
||||||
return callback_data
|
return callback_data
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue