Closed ggwpez closed 3 years ago
Motivation: After using the payment library in a bot, we noticed that having an injectable Dialer and Listener would be good.
Dialer
Listener
Goal: Add a way to inject a Dialer and Listener into the payment client.
Design: Either:
NewClient
payment.WithDialer
payment.WithListener
SetDialer
SetListener
Client
Init
Motivation: After using the payment library in a bot, we noticed that having an injectable
Dialer
andListener
would be good.Goal: Add a way to inject a
Dialer
andListener
into the payment client.Design:
Either:
NewClient
likepayment.WithDialer
andpayment.WithListener
SetDialer
andSetListener
on theClient
object which can be called beforeInit