count_public_messages_by_tag()#

Client.count_public_messages_by_tag()#

Get the count of messages with the provided hashtag or cashtag.

If you want to get the actual messages, see search_public_messages_by_tag().

Usable by Users Bots
Parameters:

hashtag (str, optional) – Hashtag or cashtag to search for.

Returns:

int – On success, the messages count is returned.