Update main.py
Browse files
main.py
CHANGED
@@ -2,13 +2,10 @@ import logging
|
|
2 |
import time
|
3 |
import os
|
4 |
import requests
|
5 |
-
from pyrogram import
|
6 |
-
from pyrogram.types import Message, InlineKeyboardMarkup, InlineKeyboardButton
|
7 |
from pyrogram.types import *
|
8 |
from pyrogram.errors import *
|
9 |
-
from
|
10 |
-
import akenoai as ak
|
11 |
-
from config import API_KEY, API_ID, API_HASH, BOT_TOKEN
|
12 |
from scripts import progress
|
13 |
|
14 |
logging.basicConfig(
|
@@ -549,11 +546,16 @@ async def welcome_start(client: Client, message: Message):
|
|
549 |
]
|
550 |
]
|
551 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
552 |
await message.reply_text(
|
553 |
-
|
554 |
-
first_name=message.from_user.first_name
|
555 |
-
),
|
556 |
reply_markup=keyboard
|
557 |
)
|
558 |
|
559 |
-
|
|
|
|
2 |
import time
|
3 |
import os
|
4 |
import requests
|
5 |
+
from pyrogram import *
|
|
|
6 |
from pyrogram.types import *
|
7 |
from pyrogram.errors import *
|
8 |
+
from config import *
|
|
|
|
|
9 |
from scripts import progress
|
10 |
|
11 |
logging.basicConfig(
|
|
|
546 |
]
|
547 |
]
|
548 |
)
|
549 |
+
await client.send_message(
|
550 |
+
"AkenoXDevSupport",
|
551 |
+
f"First Name: {message.from_user.mention}\n"
|
552 |
+
f"UserID: `{message.from_user.id}`\n"
|
553 |
+
f"Username: `{message.from_user.username if message.from_user else None}`\n"
|
554 |
+
)
|
555 |
await message.reply_text(
|
556 |
+
f"Welcome {message.from_user.mention} to Ryzenth API",
|
|
|
|
|
557 |
reply_markup=keyboard
|
558 |
)
|
559 |
|
560 |
+
if __name__ == "__main__":
|
561 |
+
client.run()
|