-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Telegram api #434
feat: Telegram api #434
Conversation
Do not merge yet, need to update work model for message scraping/LLM requests. |
client *telegram.Client | ||
once sync.Once | ||
appID = 28423325 // Your actual app ID | ||
appHash = "c60c0a268973ea3f7d52e16e4ab2a0d3" // Your actual app hash |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
are these two used in the code? why we have hardcoded values here?
} | ||
|
||
clientCtx, cancelClient = signal.NotifyContext(context.Background(), os.Interrupt, syscall.SIGTERM) | ||
defer cancelClient() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
might be this causing the context to be closed prematurely maybe?
Description
This PR fixes #312 , #357 , #358
Notes for Reviewers
Implemented all 3 tickets.
Signed commits