celestix / gotgproto

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

Add an interface for AuthConversation #46

Closed celestix closed 4 months ago

celestix commented 4 months ago

Ref: https://t.me/GoTGProtoChat/2342

This PR adds an interface for Auth Conversation so that conversation can remain generic as per the needs. Library will use gotgproto.basicConversator as default conversator if nothing is provided through opts. It can be initiated via gotgproto.BasicConversator() function if one wants to pass it explicitly.