Improved docs and typing

This commit is contained in:
2023-08-17 23:04:38 +02:00
parent 4cbb51ca61
commit 32260e95a7
5 changed files with 38 additions and 9 deletions

View File

@@ -1,3 +1,5 @@
from typing import List
from pykeyboard import InlineButton, InlineKeyboard
from pyrogram import filters
from pyrogram.types import CallbackQuery, Message
@@ -13,7 +15,7 @@ async def command_language(app: PyroClient, message: Message):
user = await app.find_user(message.from_user)
keyboard = InlineKeyboard(row_width=2)
buttons = []
buttons: List[InlineButton] = []
for locale, data in app.in_every_locale("metadata").items():
buttons.append(