Skip to content

Bug with CanSendOtherMessages variable #271

Description

@ddmmitrii

If I want to mute user but give him opportunity to send photos, videos, stickers and gifs I will use:

_, err := b.RestrictChatMember(ctx, &bot.RestrictChatMemberParams{
		ChatID: msg.Chat.ID,
		UserID: msg.From.ID,
		Permissions: &models.ChatPermissions{
			CanSendMessages: false,
			CanSendPhotos:   true,
			CanSendVideos:   true,
			CanSendOtherMessages: true,
		},
		UntilDate: int(until),
	})

BUT CanSendOtherMessages: true gives opportunity to send text!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions