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: 563, today: 1, week: 4, month: 18

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: 478, today: 1, week: 3, month: 18

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: 536, today: 1, week: 3, month: 16

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: 504, today: 1, week: 2, month: 16

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: 527, today: 2, week: 8, month: 23

Идентификатор: 9534460
Опубликовано: Jun 11 2019, 19:56
Обновлено: Jun 14 2019, 8:06
Ответы: 5
Вид: 499, сегодня: 2, неделю: 6, месяц: 19
Я уверен
Вывесить флаг как оскорбительное, или в нарушение правил сайта