🌐 Quantum Coin – Telegram
Forwarded from 5G @Botman
Forwarded from 5G @Botman
Forwarded from تبلیغات گسترده گیزمیز
This media is not supported in your browser
VIEW IN TELEGRAM
Forwarded from NewZap (آرمین ستاری @ @ @ @ @_@)
Channel name was changed to «News 69»
Forwarded from ∆bot Botman backdoor (Armingram)
👽.ws
∆bot
Forwarded from Dr. BOTMAN (Armin)
Botman Telegram

bots telegram-bot

they could help me I do not know how to put buttons in telegram, only in facebook messenger, where the error can be ?

$botman->hears('1', function ($bot) { $bot->reply("• Android versión 4.4.2 (KitKat) o superior • Espacio en memoria de almacenamiento • Memoria RAM superior a 1 GB • Duración de batería superior a 12 horas de uso continuo • Conexión a red celular 3G o superior • Conexión a Internet");

$bot->reply('¿ Algo más en lo que pueda ayudarte ?') ->addButton(Button::create('Tell a joke') ) ->addButton(Button::create('Give me a fancy quote') )

});

Share Improve this question Follow

askedOct 30 '18 at 20:02



Andrea Hernández
43●66 bronze badges

You need isolate the problem and debug from there. If you're stuck provide a clear explanation of what isn't working with a Minimal, Complete, and Verifiable example. I suggest reading How to Ask a good question. Also, be sure to take the tour– André DS Oct 30 '18 at 20:07

Add a comment

1 Answer

order by                          

active                         oldest                         votes                     

Up vote0Down voteAccepted

This is solved using the classes of app / Conversations.php

<?php namespace App\Conversations; use Illuminate\Foundation\Inspiring; use BotMan\BotMan\Messages\Incoming\Answer; use BotMan\BotMan\Messages\Outgoing\Question; use BotMan\BotMan\Messages\Outgoing\Actions\Button; use BotMan\BotMan\Messages\Conversations\Conversation; class ExampleConversation extends Conversation { /** * First question */ public function askReason() { $question = Question::create("Huh - you woke me up. What do you need?") ->fallback('Unable to ask question') ->callbackId('ask_reason') ->addButtons([ Button::create('Tell a joke')->value('joke'), Button::create('Give me a fancy quote')->value('quote'), ]); return $this->ask($question, function (Answer $answer) { if ($answer->isInteractiveMessageReply()) { if ($answer->getValue() === 'joke') { $joke = json_decode(file_get_contents('http://api.icndb.com/jokes/random')); $this->say($joke->value->joke); } else { $this->say(Inspiring::quote()); } } }); } //clases dinamicas, cambiar estructura de base de datos :v /** * Start the conversation */ public function run() { $this->askReason(); } }

and in your botman.php :

$botman->hears('/start', function (BotMan $bot) { $bot->startConversation(new ExampleConversation()); });

Share Improve this answer Follow

answeredMar 8 '19 at 21:23



Andrea Hernández
43●66 bronze badges

Your Answer

Body

 Add picture

Log in

OR

Name

Email

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Post Your Answermeta chat tour help blog privacy policy legal contact uscookie settings full site

2021 Stack Exchange, Inc. user contributions under cc by-sa

allyearquartermonthweek



ArminFreising, Bavaria, Germany

0

.net, google-chrome, process



Armin

0

string, intellij-idea, java



arminVienna, Austria

0

c, pointers, three.js



Armin

0

mysql, highcharts, highstock



ArminMunich, Germany

0

c#



ArminCologne, Germany

0

php, javanoscript, composer-php



ArminRemote, Europe or USA

0

css



Armin

0

postgresql



ArminAmsterdam, Netherlands

0

php, macos, mamp



arminShiraz, Iran

0

c#, java, multithreading



Armin

0

flash, arabic, tlf



armin

0

iphone, cursor, cursor-position



ArminBerlin, Germany

0

sonarqube



ArminSan Francisco, CA, United States

0

ios, objective-c, iphone



Armin

0

jquery



arminSydney NSW, Australia

0

java, ide, security



Armin

0

c#, ldap, directoryentry



Armin

0

linux, c, ruby



ArminCologne, Germany

0

javanoscript, macos, xcode



Armin

0



Armin

0

android, android-support-library, android-fileprovider



ArminMontenegro

0

java, maven-2, maven



Armin

0



Armin

0



Armin

0

c#, arrays, multithreading



ArminNorth America

0

amazon-cognito, c#, .net-core



ArminGermany

0

java, reactive-programming, rx-java



Armin

0



arminGermany

0