celestix / gotgproto

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

When I use: [StringSession ,TelethonSession ] Unable to start main.go #63

Closed TNT-ma closed 1 month ago

TNT-ma commented 1 month ago

&gotgproto.ClientOpts{ Session: sessionMaker.StringSession("test"). // Sqlite session name (if you're not using memory session) // i.e. InMemory in ClientOpts is set to false // It will be saved as my_session.session as per this example. Name("my_session"),

I want to set the session, but the following error occurs. Using SimpleSession() is normal

failed to start client: invalid character 'µ' looking for beginning of value
celestix commented 1 month ago

You are supposed to input your gotgproto session string as an argument to sessionMaker.StringSession, just writing a random string like "test" won't work.