MadelineProto icon indicating copy to clipboard operation
MadelineProto copied to clipboard

sendBotStartMessage Return Error

Open toriqahmads opened this issue 8 years ago • 5 comments

I'm trying sendBotStartMessage method. But it return error. Here the error :

danog\MadelineProto\TL\Exception: Could not find method: sendBotStartMessage
TL Trace (YOU ABSOLUTELY MUST READ THE TEXT BELOW):


CallHandler.php(72):    serialize_method("sendBotStartMessage",{"bot_user_id":421134969,"chat_id":9923893478,"parameter":"https:\/\/telegram.me\/Sample_Bot\/?start=338045893","peer":9923893478})

And here is my code :

$MadelineProto->sendBotStartMessage(['bot_user_id' => 421134969, 'chat_id' => 9923893478, 'parameter' => "https://telegram.me/Sample_Bot/?start=338045893"]);

How the solutions?

Thank you

toriqahmads avatar Feb 06 '18 17:02 toriqahmads

Do not use the TD methods, use directly the API methods: https://docs.madelineproto.xyz/API_docs/methods/messages_startBot.html

danog avatar Feb 06 '18 17:02 danog

How can I get the input peer? Or is generate by me?

toriqahmads avatar Feb 06 '18 17:02 toriqahmads

image

danog avatar Feb 06 '18 17:02 danog

This documentation is a true hyperdocument: you must click all hyperlinks you see to properly understand it.

danog avatar Feb 06 '18 17:02 danog

Thank you so much for helping and fast reply @danog

toriqahmads avatar Feb 06 '18 17:02 toriqahmads