1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

  2. Anuncie Aqui ! Entre em contato fdantas@4each.com.br

[Python] Send message with params using pyrogram

Discussão em 'Python' iniciado por Stack, Setembro 25, 2021.

  1. Stack

    Stack Membro Participativo

    I try to send message using pyrogram, but I need send it with special params like in this example https://t.me/any_random_bot?title=my_text

    I tried using something like it, but it doesn't work

    with app:
    botpeer = resolve_peer("any_random_bot")
    app.send(
    functions.messages.SendMessage(
    peer=botpeer + "?title=my_text",
    random_id=random.randint(100000,999999),
    message="/start")
    )

    Continue reading...

Compartilhe esta Página