Skip to content

Commit afbeacb

Browse files
committed
Remove the botogram.buttons shorthand
1 parent d789d9c commit afbeacb

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

botogram/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
from .runner import run
3535
from .objects import *
3636
from .utils import usernames_in
37-
from .callbacks import buttons
37+
from .callbacks import Buttons, ButtonsRow
3838

3939

4040
# This code will simulate the Windows' multiprocessing behavior if the

botogram/callbacks.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -100,11 +100,6 @@ def _serialize_attachment(self):
100100
return {"inline_keyboard": rows}
101101

102102

103-
def buttons():
104-
"""Create a new inline keyboard"""
105-
return Buttons()
106-
107-
108103
def parse_callback_data(bot, chat, raw):
109104
"""Parse the callback data generated by botogram and return it"""
110105
raw = raw.encode("utf-8")

0 commit comments

Comments
 (0)