on_chat_left()

Client.on_chat_left()

Decorator for handling chat member leave events.

Usable by Users Bots

This event triggers specifically when a member leaves, is kicked, or is banned from a chat. This does the same thing as add_handler() using the ChatLeftHandler.

Parameters:
  • filters (filters, optional) – Pass one or more filters to allow only a subset of updates to be passed in your function.

  • group (int, optional) – The group identifier, defaults to 0.