Skip to content
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

hi,Is there a layer132 version of the code,please #24

Closed
ashkiynn opened this issue Feb 10, 2023 · 11 comments
Closed

hi,Is there a layer132 version of the code,please #24

ashkiynn opened this issue Feb 10, 2023 · 11 comments

Comments

@ashkiynn
Copy link

No description provided.

@AmarnathCJD
Copy link
Owner

@ashkiynn
Copy link
Author

Thank you very much

@TAMILVIP007
Copy link

@ashkiynn Why do you need tho

@ashkiynn
Copy link
Author

@TAMILVIP007 I was involved in a project similar to telegrom server side,now start preparing for the stress test,test draws on gogram.but I used layer6132 and modified 6132, interspersed with some custom content, including 6133、6145 and my own creation

@TAMILVIP007
Copy link

@ashkiynn Oh okiee

@ashkiynn
Copy link
Author

@AmarnathCJD
Sorry to bother you again. I used cmd/tlgen, but created methods_gen.go have '*tl.bool', how to solve, old file is 'bool'

@AmarnathCJD
Copy link
Owner

@ashkiynn Replace all *tl.bool with bool, i forgot to edit it 😐

@ashkiynn
Copy link
Author

Very happy, I can already log in and send messages
But how do I receive messages from others?
I know I can go through get updates to actively get the message, is it possible to actively receive message push from the server?

@AmarnathCJD
Copy link
Owner

@ashkiynn func u(i any) bool {
..... Updates
}

client.AddCustomServiceRequestHandler(u)

this sends all incoming updates to the function in realtime

@AmarnathCJD
Copy link
Owner

@ashkiynn Or you can add event handlers like

client.AddMessageHandler('/start', func (m *telegram.NewMessage) error {
fmt.Println(m)
return nil
})

@ashkiynn
Copy link
Author

@AmarnathCJD think you again, I'll try it tomorrow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants