MCPcopy
hub / github.com/go-telegram/bot / SendMessage

Method SendMessage

methods.go:54–58  ·  view source on GitHub ↗

SendMessage https://core.telegram.org/bots/api#sendmessage

(ctx context.Context, params *SendMessageParams)

Source from the content-addressed store, hash-verified

52
53// SendMessage https://core.telegram.org/bots/api#sendmessage
54func (b *Bot) SendMessage(ctx context.Context, params *SendMessageParams) (*models.Message, error) {
55 mes := &models.Message{}
56 err := b.rawRequest(ctx, "sendMessage", params, mes)
57 return mes, err
58}
59
60// ForwardMessage https://core.telegram.org/bots/api#forwardmessage
61func (b *Bot) ForwardMessage(ctx context.Context, params *ForwardMessageParams) (*models.Message, error) {

Callers 15

TestBot_MethodsFunction · 0.95
handlerFunction · 0.80
helloHandlerFunction · 0.80
defaultHandlerFunction · 0.80
handlerFunction · 0.80
handlerFunction · 0.80
streamResponseFunction · 0.80
handlerFunction · 0.80
callbackHandlerFunction · 0.80
commandHandlerFunction · 0.80
handlerFunction · 0.80
callbackHandlerFunction · 0.80

Calls 1

rawRequestMethod · 0.95

Tested by 1

TestBot_MethodsFunction · 0.76