From 0a24847cd4e968725683883eed34afd8ce1821d9 Mon Sep 17 00:00:00 2001 From: ViruZs <52099763+TGExplore@users.noreply.github.com> Date: Thu, 27 May 2021 16:10:37 +0530 Subject: [PATCH] Typo TypeError: getattr(): attribute name must be string --- bot/screenshotbot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bot/screenshotbot.py b/bot/screenshotbot.py index a5bff663..ba11a20e 100644 --- a/bot/screenshotbot.py +++ b/bot/screenshotbot.py @@ -72,7 +72,7 @@ async def _start_broadcast(self, broadcast_message, admin_id): chat_id=admin_id, text="Broadcast started. Use the buttons to check the progress or to cancel the broadcast.", reply_to_message_id=broadcast_message.message_id, - reply_markup=InlineKeyboardMarkup( + reply_markup=InlineKeyboardMarkup([ [ InlineKeyboardButton( text="Check Progress", @@ -83,7 +83,7 @@ async def _start_broadcast(self, broadcast_message, admin_id): callback_data=f"cncl_bdct+{broadcast_id}", ), ] - ), + ]), ) await broadcast_handler.start()