Documentation
¶
Index ¶
- func BotToMTProtoID(id int64) int64
- func EscapeMD(txt string) string
- func IsBotIsNotMember(err error) bool
- func IsBotIsNotMemberOfChannel(err error) bool
- func IsBotIsNotMemberOfSupergroup(err error) bool
- func IsCantCheckChatMember(err error) bool
- func IsChatNotFoundError(err error) bool
- func IsMemberListIsInaccessible(err error) bool
- func IsNotEnoughRightsToExportChatInviteLink(err error) bool
- func MTProtoToBotID(id int32) int64
- func ParseJoinLink(v string) string
- type ChatInputType
- type Handler
- type HandlerFunc
- type JoinLinkPayload
- type Middleware
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsBotIsNotMember ¶
func IsCantCheckChatMember ¶
func IsChatNotFoundError ¶
func ParseJoinLink ¶
ParseJoinLink returns hash from join chat link or empty string if not found.
Types ¶
type ChatInputType ¶
type ChatInputType int
const ( ChatInputUnkown ChatInputType = iota ChatInputJoinLink ChatInputUsername )
func ParseChatInput ¶
func ParseChatInput(query string) (qt ChatInputType, value string)
ParseChatInput parse user input
type HandlerFunc ¶
func (HandlerFunc) HandleUpdate ¶
type JoinLinkPayload ¶
func DecodeJoinLinkPayload ¶
func DecodeJoinLinkPayload(encodedPayload string) (*JoinLinkPayload, error)
func (*JoinLinkPayload) BotChatID ¶
func (payload *JoinLinkPayload) BotChatID() int64
type Middleware ¶
Click to show internal directories.
Click to hide internal directories.