celestix / gotgproto

A wrapper for Go Telegram Client, i.e. gotd/td.
GNU General Public License v3.0
162 stars 31 forks source link

sessionMaker.TdataSession() Error reporting method does not exist #64

Open TNT-ma opened 2 months ago

TNT-ma commented 2 months ago

Session: sessionMaker.TdataSession(accounts[0]).Name("tdata"),

TdataSession Error reporting method does not exist

The example code has already expired

celestix commented 2 months ago

Can you explain it a bit more? The data seems insufficient to understand the problem.

TNT-ma commented 2 months ago
        &gotgproto.ClientOpts{
            Session: sessionMaker.TdataSession(accounts[0]).Name("tdata"),

        },

Error display: TdataSession function does not exist

celestix commented 2 months ago
      &gotgproto.ClientOpts{
          Session: sessionMaker.TdataSession(accounts[0]).Name("tdata"),

      },

Error display: TdataSession function does not exist

Please update gotgproto to the latest by running this command:

go get -u github.com/celestix/gotgproto`

This should fix the issue.