Documentation
¶
Index ¶
- Variables
- type AdminInfo
- type AdminPerm
- type SendMode
- type Use
- func (n *Use) Alert(text string) error
- func (n *Use) Delete(message int) error
- func (n *Use) GetAdminList() (map[int64]AdminInfo, error)
- func (n *Use) GetChatMember(uid int64) (int, error)
- func (n *Use) ImportOpts(v *tele.SendOptions) *Use
- func (n *Use) Leave(v ...*tele.Chat) error
- func (n *Use) Send(v any) (i *tele.Message, e error)
- func (n *Use) SetAutoDelete(t time.Duration) *Use
- func (n *Use) SetBtn(btn *tele.ReplyMarkup) *Use
- func (n *Use) SetChatID(c int64) *Use
- func (n *Use) SetContext(c tele.Context) *Use
- func (n *Use) SetDeleteCommand() *Use
- func (n *Use) SetDisableWebPreview() *Use
- func (n *Use) SetModes(s ...SendMode) *Use
- func (n *Use) SetShowAlert() *Use
- func (n *Use) SetTopicID(v int64) *Use
- type User
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrCtxNotSet = errors.New("ulib.telebot: context not set") ErrNoSuperGroup = errors.New("ulib.telebot: Cannot be non-supergroup type") )
Functions ¶
This section is empty.
Types ¶
type AdminPerm ¶
type AdminPerm struct { CanBeEdited bool `json:"can_be_edited"` CanManageChat bool `json:"can_manage_chat"` CanChangeInfo bool `json:"can_change_info"` CanDeleteMessages bool `json:"can_delete_messages"` CanInviteUsers bool `json:"can_invite_users"` CanRestrictMembers bool `json:"can_restrict_members"` CanPinMessages bool `json:"can_pin_messages"` CanManageTopics bool `json:"can_manage_topics"` CanPromoteMembers bool `json:"can_promote_members"` CanManageVideoChats bool `json:"can_manage_video_chats"` IsAnonymous bool `json:"is_anonymous"` CanManageVoiceChats bool `json:"can_manage_voice_chats"` }
type Use ¶
type Use struct { Context tele.Context ChatId int64 AutoDeleteTimer time.Duration AutoDelete bool ShowAlert bool DeleteCommand bool Threads bool ParseMode string Btn *tele.ReplyMarkup SendOptions *tele.SendOptions }
func (*Use) GetAdminList ¶
Get the list of group administrators
It is now recommended to use `telebot.Context.Bot().Adminsof()` method.
func (*Use) ImportOpts ¶
func (n *Use) ImportOpts(v *tele.SendOptions) *Use
func (*Use) SetDeleteCommand ¶
func (*Use) SetDisableWebPreview ¶
For text messages, disables previews for links in this message.
func (*Use) SetShowAlert ¶
func (*Use) SetTopicID ¶
Click to show internal directories.
Click to hide internal directories.