telegram bot - php how to create inline button for share message -


telegram has bot, it's name @like. can create vote bot.

enter image description here

my problem share button. how can share, created voting message other user can or dislike it?

@like bot give me blew string sharing. how can achieve in php?

enter image description here

finally found how that. i'm using irazasyed/telegram-bot-sdk library laravel.

so share message can use: switch_inline_query

 $inlinelayout[][] = keyboard::inlinebutton(['text' => 'forward me groups', 'switch_inline_query' => 'post_'.$post->id]);             $keyboard = $this->telegram->replykeyboardmarkup([                 'inline_keyboard' => $inlinelayout,              ]);  $response = $this->telegram->sendmessage()                             ->replymarkup($keyboard)                             ->chatid($chatid)                             ->text("sample text")                             ->getresult(); 

Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -