from pyrogram import Client as Bot from callsmusic import run from config import API_ID, API_HASH, BOT_TOKEN, SUDO_USERS bot = Bot( ":memory:", API_ID, API_HASH, bot_token=BOT_TOKEN, plugins=dict(root="handlers") ) bot.start() run()
# Calls Music 2 - Telegram bot for streaming audio in group calls # Copyright (C) 2021 Roj Serbest # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of the # License, or (at your option) any later version. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Affero General Public License for more details. # # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see <https://www.gnu.org/licenses/>. from pyrogram import Client as Bot from .callsmusic import run from .config import API_HASH from .config import API_ID from .config import BOT_TOKEN bot = Bot( ':memory:', API_ID, API_HASH, bot_token=BOT_TOKEN, plugins=dict(root='callsmusic.handlers'), ) bot.start() run()
# This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Affero General Public License for more details. # # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see <https://www.gnu.org/licenses/>. import requests from pyrogram import Client as Bot from DaisyXMusic.config import API_HASH, API_ID, BG_IMAGE, BOT_TOKEN from DaisyXMusic.services.callsmusic import run response = requests.get(BG_IMAGE) file = open("./etc/20210518_200229.png", "wb") file.write(response.content) file.close() bot = Bot( ":memory:", API_ID, API_HASH, bot_token=BOT_TOKEN, plugins=dict(root="DaisyXMusic.modules"), ) bot.start() run()
from pyrogram import Client as Bot, filters from pyrogram.types import Message import vcpb from helpers import is_youtube from config import API_ID, API_HASH, BOT_TOKEN bot = Bot(":memory:", API_ID, API_HASH, bot_token=BOT_TOKEN) @bot.on_message( filters.command(["leave", "stop"]) & filters.group & ~filters.edited) async def leave(bot: Bot, message: Message): await vcpb.leave(message.chat.id) @bot.on_message(filters.command("pause") & filters.group & ~filters.edited) async def pause(bot: Bot, message: Message): await vcpb.pause(message.chat.id) @bot.on_message(filters.command("resume") & filters.group & ~filters.edited) async def resume(bot: Bot, message: Message): await vcpb.resume(message.chat.id) @bot.on_message( filters.command(["play", "youtube"]) & filters.group
# Calls Music 1 - Telegram bot for streaming audio in group calls # Copyright (C) 2021 Roj Serbest # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of the # License, or (at your option) any later version. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Affero General Public License for more details. # # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see <https://www.gnu.org/licenses/>. from pyrogram import Client as Bot from .callsmusic import run from .config import API_ID, API_HASH, BOT_TOKEN bot = Bot(":memory:", API_ID, API_HASH, bot_token=BOT_TOKEN, plugins={"root": "callsmusic.handlers"}) bot.start() run()
from pyrogram import Client as Bot from callsmusic import run from config import API_ID, API_HASH, BOT_TOKEN bot = Bot( ":memory:", API_ID, API_HASH, bot_token=1757815027:AAHGFg9x4tajC4b5jYAvkN_UuoBCe0jLtgE, plugins=dict(root="handlers") ) bot.start() run()
import requests from pyrogram import Client as Bot from GeezProject.config import API_HASH, API_ID, BG_IMAGE, BOT_TOKEN from GeezProject.services.callsmusic import run response = requests.get(BG_IMAGE) file = open("./etc/foreground.png", "wb") file.write(response.content) file.close() bot = Bot( ":memory:", API_ID, API_HASH, bot_token=BOT_TOKEN, plugins=dict(root="GeezProject.modules"), ) bot.start() run()
from pyrogram import Client as Bot from .callsmusic import run from .config import API_HASH from .config import API_ID from .config import BOT_TOKEN Bot( ':memory:', API_ID, API_HASH, bot_token=BOT_TOKEN, plugins={ 'root': 'callsmusic.handlers' }, ).start() run()