Giter Site home page Giter Site logo

Comments (11)

AmarnathCJD avatar AmarnathCJD commented on May 18, 2024

@ashkiynn It can be generated using https://github.com/AmarnathCJD/gogram/tree/master/internal/cmd/tlgen

from gogram.

ashkiynn avatar ashkiynn commented on May 18, 2024

Thank you very much

from gogram.

TAMILVIP007 avatar TAMILVIP007 commented on May 18, 2024

@ashkiynn Why do you need tho

from gogram.

ashkiynn avatar ashkiynn commented on May 18, 2024

@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.

TAMILVIP007 avatar TAMILVIP007 commented on May 18, 2024

@ashkiynn Oh okiee

from gogram.

ashkiynn avatar ashkiynn commented on May 18, 2024

@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.

AmarnathCJD avatar AmarnathCJD commented on May 18, 2024

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

from gogram.

ashkiynn avatar ashkiynn commented on May 18, 2024

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.

AmarnathCJD avatar AmarnathCJD commented on May 18, 2024

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

client.AddCustomServiceRequestHandler(u)

this sends all incoming updates to the function in realtime

from gogram.

AmarnathCJD avatar AmarnathCJD commented on May 18, 2024

@ashkiynn Or you can add event handlers like

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

from gogram.

ashkiynn avatar ashkiynn commented on May 18, 2024

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

from gogram.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.