Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Discussion options

I'm playing around with a gimmicky bot I want to use in big chat group. When sent a particular command, I want it to reply based on the context of the chat history (based on some n prior messages). Looking around, it seems this is not possible?

(to be clear, I do not mean retrieving the last few messages with the bot! I mean retrieving the last few messages of the chat in which the bot lives)

You must be logged in to vote

Replies: 1 comment

Comment options

Yes, IIRC Bot API has no way for fetching older messages after they've been delivered to your bot. You can keep track of them as they come if that suits you, just note that some could be deleted later without you knowing.

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
⁉️
Q&A
Labels
None yet
2 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.