Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SendResponder ¶
func SendResponder(ctx context.Context, result <-chan interface{}) (httpmock.Responder, <-chan ReceivedMessage)
SendResponder helps to test telegram api. Returns received message to out channel, Waits for result channel with object to return in API. If result channel is nil, then returns empty telegram.Message. If result channel has error, then returns APIResponse with Ok False and Description.
Types ¶
Click to show internal directories.
Click to hide internal directories.