Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/abhinavdahiya/go-messenger-bot
/ functions
Functions
36 in github.com/abhinavdahiya/go-messenger-bot
⨍
Functions
36
◇
Types & classes
37
↓ 3 callers
Method
SetSettings
(b *bytes.Buffer)
threadsettings.go:32
↓ 2 callers
Method
MakeRequest
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 callers
Function
NewImageFromURL
Creates a Message with image attachment to be sent by bot
helpers.go:46
↓ 1 callers
Function
verifySignature
This function verifies the message
messenger.go:192
Method
AddButton
(b ...Button)
send.go:109
Method
AddButton
(bt ...Button)
send.go:127
Method
AddElement
(e ...Element)
send.go:92
Method
AddQR
(q ...QR)
send.go:40
Method
IsDelivery
()
receive.go:49
Method
IsMessage
()
receive.go:37
Method
IsOptin
()
receive.go:41
Method
IsPostback
()
receive.go:45
Function
NewAction
Create a sender action takes const TypingON/TypingOFF/MarkSeen
helpers.go:21
Function
NewAudioFromURL
Creates a Message with audio attachment to be sent by bot
helpers.go:59
Function
NewBotAPI
This helps create a BotAPI instance with token, verify_token By default Debug is set to false
messenger.go:31
Function
NewButtonTemplate
Creates an empty Button Template
helpers.go:155
Function
NewElement
Creates a new Element (info card) to be sent as part of the generic template
helpers.go:121
Function
NewFileFromURL
Creates a Message with file attachment to be sent by bot
helpers.go:85
Function
NewGenericTemplate
Creates an empty generic template
helpers.go:97
Function
NewListTemplate
Creates an empty list template
helpers.go:107
Function
NewMessage
Creates a Message with given text to be sent by bot
helpers.go:26
Function
NewPhoneButton
Creates a new Button of type `phone_number`
helpers.go:146
Function
NewPostbackButton
Creates a new Button of type `postback`
helpers.go:137
Function
NewQuickReply
Creates a quick reply Takes two parameters: - title(string) - postback_payload(string)
helpers.go:36
Function
NewReceiptTemplate
Creates an empty Receipt Template
helpers.go:166
Function
NewURLButton
Creates a new Button of type `web_url`
helpers.go:128
Function
NewUserFromID
Creates a User from ID(int64)
helpers.go:6
Function
NewUserFromPhone
Creates a User from phone no(string)
helpers.go:13
Function
NewVideoFromURL
Creates a Message with video attachment to be sent by bot
helpers.go:72
Method
Send
This function helps send messages to users It takes Message / GenericTemplate / ButtonTemplate / ReceiptTemplate and sends it to the user
messenger.go:72
Method
SendFile
This helps to send local images (currently) to users TODO: not tested yet!
messenger.go:162
Method
SetGStarted
(text string)
threadsettings.go:68
Method
SetGreeting
(text string)
threadsettings.go:51
Method
SetMenu
(bts []Button)
threadsettings.go:86
Method
SetWebhook
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
Method
Validate
()
send.go:72