Class RestrictChatMember
java.lang.Object
io.github.natanimn.telebof.requests.AbstractBaseRequest<RestrictChatMember, Boolean>
io.github.natanimn.telebof.requests.service.RestrictChatMember
RestrictChatMember class. Returns True on success.
- Since:
- 3 March 2025
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionRestrictChatMember(Object chat_id, long user_id, ChatPermissions permissions, Api api) Required
- 
Method SummaryModifier and TypeMethodDescriptionuntilDate(long until_date) OptionaluseIndependentChatPermissions(boolean use_independent_chat_permissions) OptionalMethods inherited from class io.github.natanimn.telebof.requests.AbstractBaseRequestexec
- 
Constructor Details- 
RestrictChatMemberRequired- Parameters:
- chat_id- chat id
- user_id- user id
- permissions- permissions
- api- api
 
 
- 
- 
Method Details- 
untilDateOptional- Parameters:
- until_date- Date when restrictions will be lifted for the user; Unix time. If user is restricted for more than 366 days or less than 30 seconds from the current time, they are considered to be restricted forever
- Returns:
- RestrictChatMember
 
- 
useIndependentChatPermissionsOptional- Parameters:
- use_independent_chat_permissions- Pass True if chat permissions are set independently. Otherwise, the can_send_other_messages and can_add_web_page_previews permissions will imply the can_send_messages, can_send_audios, can_send_documents, can_send_photos, can_send_videos, can_send_video_notes, and can_send_voice_notes permissions; the can_send_polls permission will imply the can_send_messages permission.
- Returns:
- RestrictChatMember
 
 
-