Retrieving prior chat messages · python-telegram-bot/python-telegram-bot · Discussion #4903 · GitHub
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
-
Heading
-
Bold
-
Italic
-
Quote
-
Code
-
Link
-
Numbered list
-
Unordered list
-
Task list
-
Attach files
-
Mention
-
Reference
👍
1
reacted with thumbs up emoji
👎
1
reacted with thumbs down emoji
😄
1
reacted with laugh emoji
🎉
1
reacted with hooray emoji
😕
1
reacted with confused emoji
❤️
1
reacted with heart emoji
🚀
1
reacted with rocket emoji
👀
1
reacted with eyes emoji
Footer
You can’t perform that action at this time.
Uh oh!
There was an error while loading. Please reload this page.
{{title}}
Uh oh!
There was an error while loading. Please reload this page.
-
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)
Beta Was this translation helpful? Give feedback.