tdlib / td

Cross-platform library for building Telegram clients
https://core.telegram.org/tdlib
Boost Software License 1.0
7.11k stars 1.44k forks source link

Based on TDlib, I now implement event monitoring for multiple account clients. Whenever I receive UpdateNewMessage, how should I distinguish which account client this message belongs to? Based on java #2822

Closed PopRang closed 5 months ago

PopRang commented 7 months ago

Based on TDlib, I now implement event monitoring for multiple account clients. Whenever I receive UpdateNewMessage, how should I distinguish which account client this message belongs to? Based on java

image

WX20240320-092109@2x

levlam commented 7 months ago

You set UpdateHandler for specific client and can store there data for identifying the client.

PopRang commented 7 months ago

Thank you, I added the identification constant of the specific client in UpdateHandler and solved this problem.