toggle menu
Telegram BitcoinBot
Messengers
1
1309
90
0
With this BitcoinBot you can get conversion rates of bitcoin in Telegram.
Additional information
Version:
 1
Create:
 May 30, 2017
Update:
 May 30, 2017
Click to rate:

Click Use this process and template "BitcoinBot (multistage)" will copy to your environment.

Connect Main (major) process to Telegram by specifying your bot's key

After receiving bot's key there's a need to send /newbot command to a chat with BotFather. Then specify the name and Bot's user name. You will get:

How does multistage BitcoinBot work

Main process

Receives all messages that are coming to Bot's chat and firstly will try to renew the task in BitcoinBot process.

Renew task in BitcoinBot = continue chat with user within unique ID chat.

It becomes possible because of creation of new request to BitcoinBot process when user sends /curs command. This request is created with reference equal to chat's ID ({{message.chat.id}}).

If we are upgrading an application for such a chat id and it was not found, then we do not have an open dialogue in this chat - no request process BitcoinBot. Then, verify which command is received from user.

In case of receiving /start command, we send message with Bot's information. In case of receiving /curs command - create request in BitcoinBot process (as it was described above).

If there's received something different from /start or /curs, define command and alert the user about it with appropriate message.

"BitcoinBot" process

Here come the requests from Main process if the user sent /curs command and firstly there's a message sent with offer to select currency.

Don't forget that request reference in this process is unique chat ID.

It allows to receive updates (new commands or messages from user to Bot's chat) from Main process, when request is in the node with CALLBACK logic.

So, after sending message with offer to choose the currency, request goes into waiting for this choice.

If the choice will not be made in 2 minutes (request will not be renewed from Main process), then we will send message about waiting time expiration.

If the currency selection was made , we offer for user the rate to show - purchase or sale and wait again in CALLBACK node.

As well as if there are no appropriate selection, we will send a message about waiting time expiration.

If the choice is made, we'll receive rates and send them in message.

"Send message" process

Sends messages to Telegram.

Both process (Main and BitcoinBot) refer to it through RPC logic.

Testing and launch

Just add your bot to Telegram and start chatting.

Go to View or Debug mode,

to see request flow, its moving and distributing by process nodes.

Read more

Similar processes

Telegram WeatherBot
Telegram WeatherBot
Messengers
0
FREE
554
34
0
PA Viber "Выдача карт"
PA Viber "Выдача карт"
Messengers
0
FREE
785
18
0
Transaction report with survey to Viber bot
Transaction report with survey to Viber bot
Messengers
0
FREE
109
0
0
Twitter Search tweets
Twitter Search tweets
Messengers
0
FREE
261
2
0
SendPulse
SendPulse
Messengers
0
FREE
137
3
0
Facebook WeatherBot
Facebook WeatherBot
Messengers
0
FREE
427
8
0
2018 © Corezoid.com. Middleware Inc., 541 Jefferson Avenue, Suite 100, Redwood City, CA 94063. All rights reserved. Patent protected. Powered by Erlang |Terms & Conditions - Enfold Theme by Kriesi