Drop hub connections for inactive TG users #3

Open
opened 2018-06-24 02:10:25 +00:00 by mappu04 · 0 comments
Owner

A hub connection is launched for each TG user in the group chat. However, an inactive TG user should probably have their hub connection closed after some time.

At the time of writing it seems like there's no way of getting the activity timeout for a bot. One workaround is to

  • have the linkbot post all messages into a private channel
  • forward them to the actual channel
  • poll the "seen" count on the original message
A hub connection is launched for each TG user in the group chat. However, an inactive TG user should probably have their hub connection closed after some time. At the time of writing it seems like there's no way of getting the activity timeout for a bot. One workaround is to - have the linkbot post all messages into a private channel - forward them to the actual channel - poll the "seen" count on the original message
Sign in to join this conversation.
No Label
bug
wishlist
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: code.ivysaur.me/nmdc-telegramfrontend#3
No description provided.