skip to Main Content

pyrogram: for msg in await app.get_history(chat, limit=1): AttributeError: 'Client' object has no attribute 'get_history' – Debian

import time import pyrogram app = pyrogram.Client("my_account", api_id=********, api_hash="***********ffe01e582ef") @app.on_message(pyrogram.filters.command('start', prefixes='.') & pyrogram.filters.me) async def sms(_, msg): with app: public = await app.get_chat('@public_name') chat = public.id while True: for msg in await app.get_history(chat, limit=1): if msg.text == 'Menu:': await app.send_message(chat,…

VIEW QUESTION
Back To Top
Search