-
Notifications
You must be signed in to change notification settings - Fork 14
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
Private chat limitation #5
Comments
As I recall, Did you try to add a bot into an existing group chat? I think this should work. |
yes I tried to add the bot into a public group and into a channel. I get the error. (defun make-chat (data)
(unless (string-equal (getf data :|type|)
"private")
(error "Only private chats are supported for now.")) ;;; <------------------------- won't pass
(make-instance 'private-chat
:id (getf data :|id|)
:username (getf data :|username|)
:first-name (getf data :|first_name|)
:last-name (getf data :|last_name|)
:raw-data data)) I didn't try by removing the error creation. |
I deleted it and tried, then:
and this or the error happen everytime I start the bot. I might need to properly remove it from the group and channel, but I think it is… |
oh cool, by accepting and continuing I found the |
I deleted the Commands work. A detail though. When the bot prints the start message, if we click on a command, then the command is complemented with an explicit mention of the bot, like so:
so to catch this we have to dispatch on the Testing more. |
Good. Feel free to create a pull-request to add groups support. |
Hello,
Currently
make-chat
ensures we create a private chat:So we can't use the bot on a public group or on a private channel. As far as my tests went, we can only interact directly with it as 1to1 (which is cool).
Do you know what's required to bypass this limitation? (I didn't check the API docs yet)
thanks
The text was updated successfully, but these errors were encountered: