The telegramClient module connects user Telegram accounts, reads Telegram channels/users/messages, downloads media, and imports channel history into GeeSome through the shared social-network import pipeline.
- Telegram login flows, including phone-code, QR-code, password, session key, and
socNetAccountpersistence. - Telegram client creation from stored account data.
- User/channel lookup, channel metadata import, media download, and remote post links.
- Telegram-specific
IGeesomeSocNetImportClientimplementation for messages, replies, reposts, media, remote links, and a currently empty properties hook. - Async channel import startup and progress/cancellation callbacks through
asyncOperation.
- Account and credential records belong to
socNetAccount. - Channel/message/post persistence belongs to
socNetImportandgroup. - Uploaded Telegram media must go through
content. - Protocol fetch/auth logic should stay here instead of leaking into
socNetImport. - Long imports must call
asyncOperation.handleOperationCanceland update progress at safe checkpoints.
- Keep session material encrypted when the selected account mode requires it.
- Keep import ranges bounded by advanced settings and existing channel state.
- Do not log full message/media payloads unless debug logging is enabled and safely summarized.
- Preserve Telegram message identity so retries update existing imported posts instead of duplicating them.