I have a telegram userbot, monitoring certain group topic and answering certain messages. But I need to speed up its reaction, any tips? from pyrogram import Client, filters from decouple import config from pyrogram.types import Message import re api_id = config('API_ID') api_hash = config('API_HASH') phone = config('PHONE') login = config('LOGIN') pattern = r'^Request' bot = Client(name=login, api_id=api_id, api_hash=api_hash, phone_number=phone) @bot.on_message(filters.text) async def command_handler(client: Client, message: Message): if re.match(pattern, message.text): await client.send_message( chat_id=message.chat.id, text="reply", message_thread_id=message.message_thread_id ) await bot.stop() bot.run() My requirements.txt file: python-decouple==3.8 tgcrypto kurigram Continue reading...