Comments (11)
@ashkiynn It can be generated using https://github.com/AmarnathCJD/gogram/tree/master/internal/cmd/tlgen
from gogram.
Thank you very much
from gogram.
@ashkiynn Why do you need tho
from gogram.
@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
from gogram.
@ashkiynn Oh okiee
from gogram.
@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'
from gogram.
@ashkiynn Replace all *tl.bool with bool, i forgot to edit it 😐
from gogram.
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?
from gogram.
@ashkiynn func u(i any) bool {
..... Updates
}
client.AddCustomServiceRequestHandler(u)
this sends all incoming updates to the function in realtime
from gogram.
@ashkiynn Or you can add event handlers like
client.AddMessageHandler('/start', func (m *telegram.NewMessage) error {
fmt.Println(m)
return nil
})
from gogram.
@AmarnathCJD think you again, I'll try it tomorrow.
from gogram.
Related Issues (20)
- How to get an id through an invite link on a channel or group HOT 2
- Still the same problem as before, MessagesCheckChatInvite HOT 4
- Need a little more help HOT 2
- About sending messages HOT 3
- BUG with GetDialog function HOT 3
- Desperately in Need of Documentation Support
- no channel with id ########## or missing from cache HOT 3
- [PHONE_CODE_INVALID] The provided phone code is invalid. (code 400) HOT 5
- Error start bot: sending MessagesStartBot: [BOT_INVALID] This is not a valid bot. (code 400) HOT 3
- sending MessagesGetBotCallbackAnswer: [DATA_INVALID] Encrypted data invalid. (code 400) HOT 3
- MessageMediaPoll Fails to Decode HOT 2
- Why is there no response when I execute the Connect method? HOT 14
- decoding unknown object HOT 6
- out of memory, program crash HOT 25
- StringSession Encode、Decode,Wrong appid HOT 7
- Cache writing files need to be locked
- no response channel found for messageId HOT 6
- Add Support for Calls HOT 2
- Imposible interface type convertion in GetFileLocation util
- 24/04/04 02:06:00 gogram - mtproto - error - decoding unknown object: processing item in container: unmarshalling response: decoding predicted object: decode registered object *objects.RpcResult: decode object: RpcResult.Obj: decode interface: EOF HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gogram.