Services Plugins FAQs

Telegram Bot Plugin

Hi, I’m trying to install the telegram plugin and when I try and import the collection into postman I get the following error;

Postman Collection Format v1 is no longer supported and can not be imported directly. You may convert your collection to Format v2 and try importing again.

Is there a V2 collection available? Or a workaround?

Thanks

M

Hi, @mtc!

Thanks for reaching out!

Let me check this carefully and I’ll get back to you asap.

Best, Julia.

1 Like

Hi, @mtc!

So, we have checked creation an Endpoint using the previous version of the collection and it works properly. But we have noticed that the Postman link from the docs that show the type of collection has been changed, meaning that it now redirects to the page with additional rows. While we investigating this, please use thу part after RawModeData and give it another try.

Hope this helps!
Best, Jula.

Hi Jula, I’m really sorry but don’t understand your suggestion. The part after RawModeData is identical to the one in the link. Do you mean replace some of the other code with this? Apologies for my lack of understanding

Hi, @mtc!

I am sorry for not being clear enough. :pray:
What I was trying to say, that you need to import the collection into a post only the data under the RawModeData:

[{\r\n “update_id”: 24297056,\r\n “callback_query”: {\r\n “id”: “567057475182196282”,\r\n “from”: {\r\n “id”: 132028356,\r\n “is_bot”: false,\r\n “first_name”: “Levon”,\r\n “last_name”: “Terteryan”,\r\n “username”: “levon377”,\r\n “language_code”: “en-US”\r\n },\r\n “message”: {\r\n “message_id”: 39,\r\n “from”: {\r\n “id”: 466515560,\r\n “is_bot”: true,\r\n “first_name”: “zenify”,\r\n “username”: “ZenifyBot”\r\n },\r\n “chat”: {\r\n “id”: 132028356,\r\n “first_name”: “Levon”,\r\n “last_name”: “Terteryan”,\r\n “username”: “levon377”,\r\n “type”: “private”\r\n },\r\n “date”: 1518525980,\r\n “text”: “hi”\r\n },\r\n “chat_instance”: “3084318604189664525”,\r\n “data”: “a1”\r\n }\r\n},\r\n{ \r\n “update_id”:24297013,\r\n “message”:{ \r\n “message_id”:7,\r\n “from”:{ \r\n “id”:132028356,\r\n “is_bot”:false,\r\n “first_name”:“Levon”,\r\n “last_name”:“Terteryan”,\r\n “username”:“levon377”,\r\n “language_code”:“en-US”\r\n },\r\n “chat”:{ \r\n “id”:132028356,\r\n “first_name”:“Levon”,\r\n “last_name”:“Terteryan”,\r\n “username”:“levon377”,\r\n “type”:“private”\r\n },\r\n “date”:1518455503,\r\n “text”:"/start",\r\n “entities”:[ \r\n { \r\n “offset”:0,\r\n “length”:6,\r\n “type”:“bot_command”\r\n }\r\n ]\r\n }\r\n}\r\n]",“collection_id”:“dd71b8e8-43ca-9bf3-12e0-31b72cb913dc”,“currentHelper”:null,“helperAttributes”:null}]

Hope this helps!
Best, Julia.

Hi Julia, thanks for this, I got the initialisation to work with the following Json;

[{ “update_id”: 24297056, “callback_query”: { “id”: “567057475182196282”, “from”: { “id”: 132028356, “is_bot”: false, “first_name”: “Levon”, “last_name”: “Terteryan”, “username”: “levon377”, “language_code”: “en-US” }, “message”: { “message_id”: 39, “from”: { “id”: 466515560, “is_bot”: true, “first_name”: “zenify”, “username”: “ZenifyBot” }, “chat”: { “id”: 132028356, “first_name”: “Levon”, “last_name”: “Terteryan”, “username”: “levon377”, “type”: “private” }, “date”: 1518525980, “text”: “hi” }, “chat_instance”: “3084318604189664525”, “data”: “a1” }},{ “update_id”:24297013, “message”:{ “message_id”:7, “from”:{ “id”:132028356, “is_bot”:false, “first_name”:“Levon”, “last_name”:“Terteryan”, “username”:“levon377”, “language_code”:“en-US” }, “chat”:{ “id”:132028356, “first_name”:“Levon”, “last_name”:“Terteryan”, “username”:“levon377”, “type”:“private” }, “date”:1518455503, “text”:“start”, “entities”: [{ “offset”:0, “length”:6, “type”:“bot_command” }] },“collection_id”:“dd71b8e8-43ca-9bf3-12e0-31b72cb913dc”,“currentHelper”:null,“helperAttributes”:null}]

But now I cannot receive any data in the API, I’m receiving the webhook but nothing in the data. If I interrogate it, I can create a json that works;

{“update_id”:775531122,
“message”:{“message_id”:13,“from”:{“id”:1551622773,“is_bot”:false,“first_name”:“m***”,“last_name”:“c*****”,“language_code”:“en”},“chat”:{“id”:1551622773,“first_name”:“m***”,“last_name”:“c*****”,“type”:“private”},“date”:1611595233,“text”:“Hello”}

Wondering if you had any ideas?

M

Hi Julia, I’ve got it working now I think

M

1 Like

Hi, @mtc!

Glad to hear that you have managed to figure this out! Good job :+1: :slightly_smiling_face:

If you like our plugin you can rate it by going to the Plugins tab in Bubble editor. Find the plugin by name and give it as many stars as it deserves. :slightly_smiling_face:
The more feedback we get, the more motivated we are to make things better in Bubble. :slightly_smiling_face:

Also if you have any questions, please, let us know!
Best, Julia.