Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update __main__.py #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dihanofficial
Copy link

#dihanrandila https://t.me/dihanrandila

from pyrogram.types.bots_and_keyboards import reply_keyboard_markup
from JESongBot.plugins import *
from pyrogram import idle, filters
from pyrogram.types import InlineKeyboardMarkup, InlineKeyboardButton
from JESongBot import Jebot as app
from JESongBot import LOGGER

pm_start_text = """
Hey {}, I'm Song Downloader Bot 🎵

😉 Just send me the song name you want to download.😋

 eg:```/song attention```

A bot by @dihanrandila 🇱🇰
"""

@app.on_message(filters.command("start"))
async def start(client, message):
chat_id = message.chat.id
user_id = message.from_user["id"]
name = message.from_user["first_name"]
if message.chat.type == "private":
btn = InlineKeyboardMarkup(
[
[
InlineKeyboardButton(
text="Channel 🔊", url="https://t.me/dihanofficial"
),
InlineKeyboardButton(
text="Dev 🔥", url="https://t.me/dihanrandila"
)
]
]
)
else:
btn = None
await message.reply(pm_start_text.format(name, user_id), reply_markup=btn)

app.start()
LOGGER.info("✅ DihanSongBot is online.")
idle()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant