Captain Ezio commited on
Commit
a29c9ce
·
1 Parent(s): 5e80b5a

Update start.py

Browse files
Files changed (1) hide show
  1. Powers/plugins/start.py +18 -20
Powers/plugins/start.py CHANGED
@@ -4,7 +4,7 @@ from pyrogram import enums, filters
4
  from pyrogram.enums import ChatMemberStatus as CMS
5
  from pyrogram.enums import ChatType
6
  from pyrogram.errors import MessageNotModified, QueryIdInvalid, UserIsBlocked
7
- from pyrogram.types import CallbackQuery, Message
8
 
9
  from Powers import HELP_COMMANDS, LOGGER
10
  from Powers.bot_class import Gojo
@@ -105,17 +105,17 @@ Join my [News Channel](https://t.me/gojo_bots_network) to get information on all
105
  except UserIsBlocked:
106
  LOGGER.warning(f"Bot blocked by {m.from_user.id}")
107
  else:
108
- kb = ikb(
 
109
  [
110
- [
111
- (
112
- "Connect me to pm",
113
- f"https://t.me/{Config.BOT_USERNAME}?start=start",
114
- "url",
115
- )
116
- ]
117
- ]
118
- )
119
  await m.reply_photo(
120
  photo=choice(StartPic),
121
  caption="I'm alive :3",
@@ -203,18 +203,16 @@ async def help_menu(_, m: Message):
203
  await m.reply_photo(
204
  photo=choice(StartPic),
205
  caption=f"Press the button below to get help for <i>{help_option}</i>",
206
- reply_markup=ikb(
 
207
  [
208
- [
209
- (
210
- "Help",
211
- f"t.me/{Config.BOT_USERNAME}?start={help_option}",
212
- "url",
213
- ),
214
- ],
215
  ],
 
216
  ),
217
- )
218
  else:
219
 
220
  if m.chat.type == ChatType.PRIVATE:
 
4
  from pyrogram.enums import ChatMemberStatus as CMS
5
  from pyrogram.enums import ChatType
6
  from pyrogram.errors import MessageNotModified, QueryIdInvalid, UserIsBlocked
7
+ from pyrogram.types import CallbackQuery, Message, InlineKeyboardButton, InlineKeyboardMarkup
8
 
9
  from Powers import HELP_COMMANDS, LOGGER
10
  from Powers.bot_class import Gojo
 
105
  except UserIsBlocked:
106
  LOGGER.warning(f"Bot blocked by {m.from_user.id}")
107
  else:
108
+ kb = InlineKeyboardMarkup(
109
+ [
110
  [
111
+ InlineKeyboardButton(
112
+ "Connect me to pm",
113
+ url=f"https://t.me/{Config.BOT_USERNAME}?start=start",
114
+ )
115
+ ],
116
+ ],
117
+ ),
118
+
 
119
  await m.reply_photo(
120
  photo=choice(StartPic),
121
  caption="I'm alive :3",
 
203
  await m.reply_photo(
204
  photo=choice(StartPic),
205
  caption=f"Press the button below to get help for <i>{help_option}</i>",
206
+ reply_markup=InlineKeyboardMarkup(
207
+ [
208
  [
209
+ InlineKeyboardButton(
210
+ "Help",
211
+ url=f"t.me/{Config.BOT_USERNAME}?start={help_option}",
212
+ ),
 
 
 
213
  ],
214
+ ],
215
  ),
 
216
  else:
217
 
218
  if m.chat.type == ChatType.PRIVATE: