telegramWaitForSent(t, telegram, telegramTextOnly)
var sends []TelegramFakeCall
+
for _, call := range telegram.Calls() {
if call.method == "sendMessage" || call.method == "sendRichMessage" {
sends = append(sends, call)
})
var methods []string
+
for _, call := range telegram.Calls() {
methods = append(methods, call.method)
}
})
var fallback, rich []string
+
for _, call := range telegram.Calls() {
switch {
case !call.ok:
})
telegramWaitForSent(t, telegram, "ok")
+
lines := strings.Split(strings.TrimSuffix(logs.String(), "\n"), "\n")
require.Len(t, lines, 2)
require.Equal(t, "receive failed: 502 Bad Gateway (retry in 1ms)", lines[0])