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

N/message interface #216

Merged
merged 5 commits into from
Oct 21, 2020
Merged

N/message interface #216

merged 5 commits into from
Oct 21, 2020

Conversation

iandioch
Copy link
Collaborator

Working towards #203.

The only visible change after this PR is that new plugins introduced in #215 take just (bot, message, **kwargs). But it means we can add new things (like image_url, sticker data, etc) that was included in messages, without changing the signature of any plugins... The new data can just be included in SteelyMessage.

I'm on the fence at also changing explicit /command calls to get some CommandCall obj containing the args and rest of message, instead of the args being added to kwargs and the message.text being (perhaps surprisingly?) a substring of the actually sent message. LMK if you have thoughts.

Copy link
Member

@CianLR CianLR left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, this thread_id stuff was an ugly holdover

@iandioch
Copy link
Collaborator Author

Thanks for the quick review.

Not sure if I mentioned it earlier, but this PR is necessary for steely to work on the newer version of the telegrab lib...

@iandioch iandioch merged commit 5ae923a into master Oct 21, 2020
@iandioch iandioch deleted the n/message_interface branch October 21, 2020 20:40
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

Successfully merging this pull request may close these issues.

2 participants