Spaces:
Sleeping
Sleeping
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
# (c) Shrimadhav U K | |
# the logging things | |
import logging | |
logging.basicConfig(level=logging.DEBUG, | |
format='%(asctime)s - %(name)s - %(levelname)s - %(message)s') | |
logger = logging.getLogger(__name__) | |
import os | |
from config import Config | |
# the Strings used for this "thing" | |
from translation import Translation | |
from pyrogram import filters | |
from database.adduser import AddUser | |
from pyrogram import Client as Clinton | |
logging.getLogger("pyrogram").setLevel(logging.WARNING) | |
from pyrogram.types import InlineKeyboardButton, InlineKeyboardMarkup | |
async def help_user(bot, update): | |
# logger.info(update) | |
await AddUser(bot, update) | |
await bot.send_message( | |
chat_id=update.chat.id, | |
text=Translation.HELP_USER, | |
parse_mode="html", | |
disable_web_page_preview=True, | |
reply_to_message_id=update.message_id | |
) | |
async def start(bot, update): | |
# logger.info(update) | |
await AddUser(bot, update) | |
await bot.send_message( | |
chat_id=update.chat.id, | |
text=Translation.START_TEXT.format(update.from_user.mention), | |
reply_markup=InlineKeyboardMarkup( | |
[ | |
[ | |
InlineKeyboardButton( | |
"Source code β‘", url="https://github.com/imseldrith/UPLOADER-BOT" | |
), | |
InlineKeyboardButton("Project Channel π¨π»βπ»", url="https://t.me/url_upload_bots"), | |
], | |
[InlineKeyboardButton("Developer π¨ββοΈ", url="https://t.me/imseldrith")], | |
] | |
), | |
reply_to_message_id=update.message_id | |
) | |