get_listener_matching_with_identifier_pattern()¶
- Client.get_listener_matching_with_identifier_pattern()¶
Gets a listener that matches the given identifier pattern.
Usable by Users Bots
The difference from
get_listener_matching_with_data()
is that this method intends to get a listener by passing partial info of the listener identifier, while the other method intends to get a listener by passing the full info of the update data, which the listener should match with.- Parameters:¶
pattern (
Identifier
) – The Identifier to match agains.listener_type (
ListenerTypes
) – The type of listener to get.
- Returns:¶
Listener
– On success, a Listener is returned.