Services Plugins FAQs

Telegram - New Plugin from Zeroqode

@hej,

Perhaps we got into a little misunderstanding :slight_smile: Apologies for this.

I’m afraid, I understood your second question literally. Simple kinds of reactions (copy, reply, forward message), are present in the Telegram app, but can’t be used via the plugin.

But creating pre-saved bot responses/actions is possible to set with the inline/custom keyboard for sure.
For example, the inline keyboard is used to make bot respond on the special text, typed and sent into the chat by the user. This text should be listed within the bot ‘database’ to make it possible for a bot to understand and react to this text.
The custom keyboard is used to display the list of pre-saved actions, which are possible to reproduce by bot.

First of all, it is better to start with creating a chatbot in Telegram. Then, using your Telegram API key, to connect your bot with your Bubble app.

Please check this Telegram reference first, it may be helpful to you: https://core.telegram.org/bots
This is a step-by-step guidance on how to create a Telegram chatbot.

Also, in the nearest future, we are going to publish the Telegram demo page, which should ease the chatbot adjusting.

Please receive my apologies if I may be confusing, because of my inaccuracy :pray:
Regards,

Hi there,

I installed and configured the plugin correctly, so now I’m able to send telegram messages to myself (because I know my chat_id).
But how can I obtain chat_id of any other user (obviously, I mean my app users)? How should the workflow look and what calls should I use to be able to receive chat_id, so I can store it in the Bubble database and use it to send messages to that user in the future?
Perhaps you have more instructions besides this shortlist - https://docs.zeroqode.com/plugins/telegram-plugin?

Thanks in advance.

Hello, @andrew.krk. Thank you for your question.

Your request needs investigation with our dev team. I will get back to you with the details on your questions once I have any useful info.

Thank you :pray:
Regards,

1 Like

@andrew.krk,

  1. How to obtain user chat_id (any).

You can get the chat_id (user’s) only right after the user initiates a conversation with a bot. It can be done with the help of API Call: “Get bot chat info”

  1. How should the workflow look.
    http://prntscr.com/sct5un
    http://prntscr.com/sct65n
    http://prntscr.com/sctu0i

  2. What calls should be used to receive chat_id.
    API Call: “Get bot chat info”: http://prntscr.com/sct4fo

Please note that this is a test setup. I hope it will be useful to you.
Regards,

Thanks, Kate, I’ll try to do so :slight_smile:

1 Like

@andrew.krk,

You are welcome. Please let me know if there are any more questions.

Regards,

Добрый день! После выполнении п. 7,8,9 инструкции инициализация вызова происходит, но данные которые возвращаются пустые http://joxi.ru/5mdRjEbH856PWA . Подскажите что я делаю не так?
И при выборе Request Data отсутствуют варианты выбора. http://joxi.ru/DmBdWGot4QWWMA

@wwweb2401, thanks for reaching out.

Let us please investigate this case. We will get back to you asap.

We will check this as well. The investigation can take some time so please be patient :slightly_smiling_face:

Thank you for understanding.

@wwweb2401,

We have checked the plugin and it works properly. There is no problem with setting up the plugin if you follow our documentation.

First of all, please explain what data you are expecting to receive and after what call you are actually initializing? Please provide screenshots and detailed description to let us understand your question.

Second of all, it is not completely clear why you are trying to use the “Request data” and where did you get it in your second screenshot. Details on this matter will be much appreciated as well.

Third of all, please check our plugin demo page. There is a completely detailed description of how you should set up and use this plugin. Also please see the plugin editor find out the plugin workflows:

Please check our demo page. It should help you understand how to use the plugin.
Regards,

@kate
Мне удалось подключить бота и я теперь могу из своего приложения отправлять сообщения пользователям которые подписаны на моего бота. Но я не могу настроить чтобы ответы от пользователей (которые они отвечают боту) отображались в базе данных моего приложения.
Я согласно п. 4 добавляю new endpoint http://joxi.ru/1A57QKRfb85B9m
потом согласно п. 5 нажимаю “Detect data”
потом согласно п. 6 копирую ссылку http://joxi.ru/RmzJKEvUMxxX9m
потом согласно п. 7 в Postman копирую содержимое которое находится по этой ссылкеhttps://www.getpostman.com/collections/463073462d41f9455e6e
потом согласно п. 8 вставляю URL который скопировал с “Detect data” и инициализирую вызов
Вызов инициализируется http://joxi.ru/1A5nQ4gtb1Xz3r http://joxi.ru/1A57QKRfb88nYm но возвращаемые данные пустые http://joxi.ru/nAyNLveTwqqYxr вернее он ничего не возвращает.
Соответственно я не могу получить данные из Telegram
Помогите пожалуйста разобраться что бы я смог записывать ответы пользователей из Telegram в базу своего приложения.
Я был на вашей демонстрационной странице и на странице редактора плагина (много раз), но там нет примера настройки Endpoint. И правильную ли Вы ссылку указали в ответе http://joxi.ru/p27N6agTNJJnxm ? У меня нет доступа к это странице.

@levon Привет! После того как на странице редактора Вашего плагина был настроен Endpoint мне удалось инициализировать его и получить данные. Но я так и не получил ответ на мой предыдущий вопрос. Позволяет ли этот плагин получать ответы пользователей, которые они пишут боту и записать их в базу Bubble, если да какие настойки нужно сделать? Я пробовал много вариантов но не один не сработал. Помогите пожалуйста разобраться.

Hey there, @wwweb2401.
Sorry for the late reply.

Apologies for this, my mistake :slightly_smiling_face:


Well, actually there are a few ways of how you can save your chat responds to the database, and setting the endpoints - is the second variant.

To make a long story short:

  1. using workflows: if you want to save your chat content into the database, you can simply create a workflow action “Create a new thing” and the data source for this new thing - set the Get chat bot info data.
  2. using endpoint setup: how does the endpoint looks like, doing a request in Postman, getting the request data.

Please note, when you’re creating an endpoint, you should hit the checkboxes on those data tables, that you’re going to use: https://prnt.sc/vc1r2n

We have tested our documentation and followed the steps and succeeded to create the endpoint and receive the request data. If you still do not receive the request data, then there’s something with your settings/API keys/or your chat does not contain any data from the users so the bot has nothing to display.


Yes, for sure it is possible. Please try the easiest way that I have suggested - creating a workflow with the action “create a new thing - Get chat bot info data”.

I hope this information will be useful to you.
Regards,

@kate Спасибо, это мне очень помогло. Мне более подходит второй вариант который вы описали.
Я создал конечную точку и инициализировал ее в Postman



В ответе я получил данные

Установил флажки в базах которые буду использовать
http://joxi.ru/bmoNZwPTyWzaxr
Все как вы описали в ответе. Но когда пользователь отвечает боту запись в базе данных Bubble не создается. 03-11-2020 yunell bubble editor.png (89 kb) закачан 3 ноября 2020 г. Joxi
Я пробовал установить другие события отправлять email, но также ничего не происходит. Получается что endpoint ничего не принимает.
Во вкладке Logs пусто (Search нажимал))) Что я опять сделал не так? Help!!! :wink:

@kate
Какая-то магия происходит. Я удалил старую request и создал новую (точно также выполнил все шаги)


и теперь запись в базе, когда пользователь отправляет боту сообщение, создается. Но она пустая

И Logs тоже пустые.

Как такое может быть? Пользователь подписан на бота, получает от него сообщения. Help!!!

@wwweb2401,

Таки да. Предоставьте нам, пожалуйста, как можно больше деталей по вашей настройке, чтобы нам было понятно что могло вызвать вашу магию (помимо тех скринов что вы прислали, укажите пожалуйста максимально детально какие настройки вы еще сделали) :slight_smile: И немного времени - мы проверим и отпишемся как только будет что-то ясно.

Спасибо.

Отправка сообщения из приложения пользователю




Все остальные настройки я уже прислал в сообщении выше. Спасибо.

1 Like

@wwweb2401,

Вы не могли бы также предоставить нам доступ к вашему приложению? Добавьте, пжлст, наш мэйл support@zeroqode.com в коллабораторы. (Нашу почту можно добавить в коллабораторы при любом подписочном плане). Это нам поможет чуть больше разобраться в проблеме, что у вас возникла. Спасиб!

Добавил, приглашение должно прийти на email

@wwweb2401,

Доступы получены, спасибо! Я оповещу вас, когда у нас появится какая-либо полезная информация.

Спасибо!

Вам спасибо за тех. поддержку))

1 Like