Documentation ¶
Index ¶
Constants ¶
View Source
const ( FORBIDDEN = "Forbidden" START_CHAT = "Forbidden: bot can't initiate conversation with a user" )
these values are values which will be received from telegram as `Forbidden` errors.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ForbiddenError ¶
type ForbiddenError struct {
// contains filtered or unexported fields
}
func GetForbidden ¶
func GetForbidden(err error) (*ForbiddenError, bool)
func (*ForbiddenError) IsPrivateMessageError ¶
func (_f *ForbiddenError) IsPrivateMessageError() bool
func (*ForbiddenError) SendRandomErrorMessage ¶
func (_f *ForbiddenError) SendRandomErrorMessage(message *tg.Message)
Click to show internal directories.
Click to hide internal directories.