NewMessage event stop getting update
See original GitHub issueI have 1 account logged in GramJS and Telegram Desktop
on the first start, GramJS was working fine, receiving new update, etc, but after a while and I do some action on Telegram Desktop, NewMessage event stop giving me update, like, there is no update come in…
but, after I use the same TelegramClient for sending message, the NewMessage are working again
my code really as simple as:
async function eventPrint(event) {
console.log(event)
}
client.addEventHandler(eventPrint, new NewMessage({}));
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:18 (8 by maintainers)
Top Results From Across the Web
Update Events — Telethon 1.26.1 documentation
Represents the event of a new message. This event can be treated to all effects as a Message , so please refer to...
Read more >Working with Updates — Telethon 1.7.7 documentation
Methods; Events Without the client; Events Without Decorators; Stopping ... If a NewMessage event occurs, and 'hello' is in the text of the...
Read more >How to use the telethon.events.NewMessage function ... - Snyk
To help you get started, we've selected a few telethon.events.NewMessage examples, based ... NewMessage) async def echo(update): """Echo the user message.
Read more >Telethon events.NewMessage() doesn't work - Stack Overflow
How can I get updates for a specific private channel using telethon? 0 · Using telethon to get text from a new message...
Read more >Bolt for Python - Slack Platform Developer Tools
A framework that makes Slack app development fast and straight-forward. With a single interface for Slack's Web API, Events API, and interactive features, ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
no, just call it once after connecting.
You need to call a high level request so that telegram knows you want to receive updates. SendMessage is one of those. Another one is client.getMe(). you can call that after you .connect each time