Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

line break in the telegram client message from bot. #264

Open
SunilGudivada opened this issue Jun 10, 2020 · 3 comments
Open

line break in the telegram client message from bot. #264

SunilGudivada opened this issue Jun 10, 2020 · 3 comments

Comments

@SunilGudivada
Copy link

SunilGudivada commented Jun 10, 2020

Issue Tracker can be used for report issues and new features. All requests will be accepted, reviewed and responded
to. However submitting a request for a new feature does not guarantee that it will be implemented, but we will
commit to respond with 7 working days if a new feature will be added to the backlog.

You can see the full backlog in Trello at Programy Backlog

Expected Behavior

It should send the text without adding a line break.
Example: http://telegram.com

Current Behavior

Currently, In Telegram CLient, the response it is sending, it is appending with \n in the sentence.
Example: http://tele\ngram.com

@keiffster
Copy link
Owner

keiffster commented Jun 10, 2020 via email

@SunilGudivada
Copy link
Author

SunilGudivada commented Jun 10, 2020

Attaching the logs. Made the call from telegram with RCS SHOW CARDS.

2020-06-11 00:42:14,067  root       DEBUG   [telegram] [bot] [brain] [*********] - AIML Parser evaluating template [PTEMPLATE [*] [P(0)^(0)#(0)C(0)_(0)*(0)To(0)Th(0)Te(1)]]
2020-06-11 00:42:14,067  root       DEBUG   [telegram] [bot] [brain] [*********] - [[WORD]Servusai] resolved to [Servusai]
2020-06-11 00:42:14,067  root       DEBUG   [telegram] [bot] [brain] [*********] - [[NODE]] resolved to [Servusai]
2020-06-11 00:42:14,068  root       DEBUG   [telegram] [bot] [brain] [*********] - [[WORD]The] resolved to [The]
2020-06-11 00:42:14,068  root       DEBUG   [telegram] [bot] [brain] [*********] - [[WORD]home] resolved to [home]
2020-06-11 00:42:14,069  root       DEBUG   [telegram] [bot] [brain] [*********] - [[WORD]of] resolved to [of]
2020-06-11 00:42:14,069  root       DEBUG   [telegram] [bot] [brain] [*********] - [[WORD]Program] resolved to [Program]
2020-06-11 00:42:14,069  root       DEBUG   [telegram] [bot] [brain] [*********] - [[WORD]Y] resolved to [Y]
2020-06-11 00:42:14,070  root       DEBUG   [telegram] [bot] [brain] [*********] - [[NODE]] resolved to [The home of Program Y]
2020-06-11 00:42:14,070  root       DEBUG   [telegram] [bot] [brain] [*********] - [[WORD]https://chatilly.com/images/cta01.jpg] resolved to [https://chatilly.com/images/cta01.jpg]
2020-06-11 00:42:14,071  root       DEBUG   [telegram] [bot] [brain] [*********] - [[NODE]] resolved to [https://chatilly.com/images/cta01.jpg]
2020-06-11 00:42:14,071  root       DEBUG   [telegram] [bot] [brain] [*********] - [[WORD]Servusai] resolved to [Servusai]
2020-06-11 00:42:14,071  root       DEBUG   [telegram] [bot] [brain] [*********] - [[NODE]] resolved to [Servusai]
2020-06-11 00:42:14,072  root       DEBUG   [telegram] [bot] [brain] [*********] - [[WORD]http://www.servusai.com] resolved to [http://www.servusai.com]
2020-06-11 00:42:14,073  root       DEBUG   [telegram] [bot] [brain] [*********] - [[NODE]] resolved to [http://www.servusai.com]
2020-06-11 00:42:14,074  root       DEBUG   [telegram] [bot] [brain] [*********] - [[WORD]AIML] resolved to [AIML]
2020-06-11 00:42:14,074  root       DEBUG   [telegram] [bot] [brain] [*********] - [[NODE]] resolved to [AIML]
2020-06-11 00:42:14,075  root       DEBUG   [telegram] [bot] [brain] [*********] - [[WORD]http://aiml.foundation] resolved to [http://aiml.foundation]
2020-06-11 00:42:14,075  root       DEBUG   [telegram] [bot] [brain] [*********] - [[NODE]] resolved to [http://aiml.foundation]
2020-06-11 00:42:14,076  root       DEBUG   [telegram] [bot] [brain] [*********] - [[CARD 2]] resolved to [<card><title>Servusai</title><subtitle>The home of Program Y</subtitle><image>https://chatilly.com/images/cta01.jpg</image><button><text>Servusai</text><url>http://www.servusai.com</url></button><button><text>AIML</text><url>http://aiml.foundation</url></button></card>]
2020-06-11 00:42:14,076  root       DEBUG   [telegram] [bot] [brain] [*********] - [[NODE]] resolved to [<card><title>Servusai</title><subtitle>The home of Program Y</subtitle><image>https://chatilly.com/images/cta01.jpg</image><button><text>Servusai</text><url>http://www.servusai.com</url></button><button><text>AIML</text><url>http://aiml.foundation</url></button></card>]
2020-06-11 00:42:14,077  root       DEBUG   [telegram] [bot] [brain] [*********] - Raw Response (*********): <card><title>Servusai</title><subtitle>The home of Program Y</subtitle><image>https://chatilly.com/images/cta01.jpg</image><button><text>Servusai</text><url>http://www.servusai.com</url></button><button><text>AIML</text><url>http://aiml.foundation</url></button></card>
2020-06-11 00:42:14,083  root       DEBUG   [telegram] [bot] [brain] [*********] - Denormalising input from [<card><title>Servusai</title><subtitle>The home of Program Y</subtitle><image>https://chatilly.com/images/cta01.jpg</image><button><text>Servusai</text><url>http://www.servusai.com</url></button><button><text>AIML</text><url>http://aiml.foundation</url></button></card>] to [<card><title>Servusai</title><subtitle>The home of Program Y</subtitle><image>https://chatilly.com/images/cta01.jpg</image><button><text>Servusai</text><url>http://www.servusai.com</url></button><button><text>AIML</text><url>http://aiml.foundation</url></button></card>]
2020-06-11 00:42:14,083  root       DEBUG   [telegram] [bot] [brain] [*********] - Formatting punctuation...
2020-06-11 00:42:14,088  root       DEBUG   [telegram] [bot] [brain] [*********] - Formatting numbers...
2020-06-11 00:42:14,091  root       DEBUG   [telegram] [bot] [brain] [*********] - Removing multiple spaces from words...
2020-06-11 00:42:14,093  root       DEBUG   [telegram] [bot] [brain] [*********] - Removing html from sentence...
2020-06-11 00:42:14,095  root       DEBUG   [telegram] [bot] [brain] [*********] - Formatting response for console outpout...
2020-06-11 00:42:14,096  root       DEBUG   [telegram] [bot] [brain] [*********] - Processed Response (*********): <card><title>Servusai</title><subtitle>The home of Program Y</subtitle><image>ht

tps://chatilly.com/images/cta01.jpg</image><button><text>Servusai</text><url>htt

p://www.servusai.com</url></button><button><text>AIML</text><url>http://aiml.fou

ndation</url></button></card>

@SunilGudivada SunilGudivada changed the title \n in the telegram client message from bot. line break in the telegram client message from bot. Jun 10, 2020
@SunilGudivada
Copy link
Author

SunilGudivada commented Jun 10, 2020

Changing the BUG title, It is not producing \n, but it giving the response in the nextline by breaking the reply including the URL

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants