Help

Using Prevoius in groups

par s54345 posté 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: 2810, today: 0, week: 5, month: 35

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: 2087, today: 0, week: 4, month: 33

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: 2265, today: 0, week: 3, month: 34

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: 2163, today: 0, week: 2, month: 27

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: 2188, today: 1, week: 3, month: 27

Id: 9534460
Posté: Jun 11 2019, 19:56
Mise à jour: Jun 14 2019, 8:06
Réponses: 5
Vues: 2234, aujourd'hui: 1, semaine: 5, mois: 36
0 0 0.0/5