skip to Main Content

How can I fetch all scheduled messages from my client in a particular group? I know how to access to messages that the client already send but I’m not able to find the scheduled ones.

I’m currently running a python application client and I am using telethon

2

Answers


  1. If you want to check if a message has been sent via schedule just check is from_schedule parameter.

    Message.from_schedule
    

    This will return True or False

    Login or Signup to reply.
  2. You can use GetScheduledHistoryRequest to do so https://tl.telethon.dev/methods/messages/get_scheduled_history.html

    from the example :

    result = client(functions.messages.GetScheduledHistoryRequest(
        peer='username',
        hash=0
        ))
    print(result.stringify())
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search