Skip to content

Commit eeec442

Browse files
author
Sʜɪᴢᴜᴋᴀ XD
authored
Update generate.py
1 parent 6c1b07e commit eeec442

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

StringSessionBot/generate.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,13 +149,13 @@ async def generate_session(bot: Client, msg: Message, telethon=False, is_bot: bo
149149
text = f"**{ty.upper()} STRING SESSION** \n\n`{string_session}` \n\nGenerated by @StarkStringGenBot"
150150
try:
151151
if not is_bot:
152-
await client.send_message("me", text)
152+
await bot.send_message(msg.chat.id, text)
153153
else:
154154
await bot.send_message(msg.chat.id, text)
155155
except KeyError:
156156
pass
157157
await client.disconnect()
158-
await bot.send_message(msg.chat.id, "Successfully generated {} string session. \n\nPlease check your saved messages! \n\nBy @StarkBots".format("telethon" if telethon else "pyrogram"))
158+
await bot.send_message(msg.chat.id, "Successfully generated {} string session. \n\nPlease check your saved messages! \n\nBy @botaaja".format("telethon" if telethon else "pyrogram"))
159159

160160

161161
async def cancelled(msg):

0 commit comments

Comments
 (0)