Help

Using Prevoius in groups

通过 s54345 发布 Jun 11 2019, 19:56

When adding a new response, there's the option to set a required previous response. Say, I require the previous response "hello". That works fine in private chat with the bot.

But when the bot is in group it routinely prefix its response with the username of the speaker making it "@username hello".

How do I require the previous response "@username hello" or preferably ("hello" or "@username hello") ?


by admin posted Jun 14 2019, 8:19
Just use the bot's reply with no prefix.

i.e.
hi
Hello!

hi
How are you today?
require previous: hello

Updated: Jun 14 2019, 8:21
Thumbs up: 0, thumbs down: 0, stars: 0.0
Views: 1770, today: 2, week: 5, month: 17

by s54345 posted Jun 15 2019, 9:01

That works fine in private chat but not in group.

Because the actual conversation in group goes like this:

--------------------------

hi 
@username Hello! 

hi 
@username How are you today? 
--------------------------

 

When you require "Hello!" or "hello" as a previous, it doesn't recognize it. Because it is prefixed with "@username".


Updated: Jun 15 2019, 9:06
Thumbs up: 0, thumbs down: 0, stars: 0.0
Views: 1545, today: 3, week: 7, month: 22

by admin posted Jun 17 2019, 9:10
I tested this in group chat and it worked fine. The @username is ignored.

What is the bot's name/id and channel you are having issues with?

Thumbs up: 0, thumbs down: 0, stars: 0.0
Views: 1710, today: 2, week: 6, month: 19

by s54345 posted Jun 18 2019, 5:21




----------------------------------------------------------








It works fine in private chat.







But in group, the second response doesn't work.








Bot Id: 9502002 


It's only connected to one Telegram group.


Thumbs up: 0, thumbs down: 0, stars: 0.0
Views: 1605, today: 3, week: 6, month: 24

by admin posted Jun 18 2019, 11:36
I tested the group messaging in your bot's chat room on Bot Libre and it worked correctly.

A Telegram group is different, we will need to investigate that.
Can you please email support@botlibre.biz with the issue, include your bot's id, and your Telegram bot name, and your Telegram group name.

Thumbs up: 0, thumbs down: 0, stars: 0.0
Views: 1637, today: 4, week: 8, month: 23

Id: 9534460
发布: Jun 11 2019, 19:56
更新: Jun 14 2019, 8:06
答复: 5
的风景: 1664, 今天: 3, 周: 6, 一个月: 21
0 0 0.0/5