MCPcopy Create free account

hub / github.com/abhinavdahiya/go-messenger-bot / functions

Functions36 in github.com/abhinavdahiya/go-messenger-bot

↓ 3 callersMethodSetSettings
(b *bytes.Buffer)
threadsettings.go:32
↓ 2 callersMethodMakeRequest
This helps send request (send messages to users) It takes Request struct encoded into a buffer of json bytes The APIResponse contains the error from F
messenger.go:45
↓ 1 callersFunctionNewImageFromURL
Creates a Message with image attachment to be sent by bot
helpers.go:46
↓ 1 callersFunctionverifySignature
This function verifies the message
messenger.go:192
MethodAddButton
(b ...Button)
send.go:109
MethodAddButton
(bt ...Button)
send.go:127
MethodAddElement
(e ...Element)
send.go:92
MethodAddQR
(q ...QR)
send.go:40
MethodIsDelivery
()
receive.go:49
MethodIsMessage
()
receive.go:37
MethodIsOptin
()
receive.go:41
MethodIsPostback
()
receive.go:45
FunctionNewAction
Create a sender action takes const TypingON/TypingOFF/MarkSeen
helpers.go:21
FunctionNewAudioFromURL
Creates a Message with audio attachment to be sent by bot
helpers.go:59
FunctionNewBotAPI
This helps create a BotAPI instance with token, verify_token By default Debug is set to false
messenger.go:31
FunctionNewButtonTemplate
Creates an empty Button Template
helpers.go:155
FunctionNewElement
Creates a new Element (info card) to be sent as part of the generic template
helpers.go:121
FunctionNewFileFromURL
Creates a Message with file attachment to be sent by bot
helpers.go:85
FunctionNewGenericTemplate
Creates an empty generic template
helpers.go:97
FunctionNewListTemplate
Creates an empty list template
helpers.go:107
FunctionNewMessage
Creates a Message with given text to be sent by bot
helpers.go:26
FunctionNewPhoneButton
Creates a new Button of type `phone_number`
helpers.go:146
FunctionNewPostbackButton
Creates a new Button of type `postback`
helpers.go:137
FunctionNewQuickReply
Creates a quick reply Takes two parameters: - title(string) - postback_payload(string)
helpers.go:36
FunctionNewReceiptTemplate
Creates an empty Receipt Template
helpers.go:166
FunctionNewURLButton
Creates a new Button of type `web_url`
helpers.go:128
FunctionNewUserFromID
Creates a User from ID(int64)
helpers.go:6
FunctionNewUserFromPhone
Creates a User from phone no(string)
helpers.go:13
FunctionNewVideoFromURL
Creates a Message with video attachment to be sent by bot
helpers.go:72
MethodSend
This function helps send messages to users It takes Message / GenericTemplate / ButtonTemplate / ReceiptTemplate and sends it to the user
messenger.go:72
MethodSendFile
This helps to send local images (currently) to users TODO: not tested yet!
messenger.go:162
MethodSetGStarted
(text string)
threadsettings.go:68
MethodSetGreeting
(text string)
threadsettings.go:51
MethodSetMenu
(bts []Button)
threadsettings.go:86
MethodSetWebhook
This function registers the handlers for - webhook verification - all callbacks made on the webhhoks It loops over all entries in the callback and pus
messenger.go:207
MethodValidate
()
send.go:72