<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Required a method to get the number of chats and messages in a chat]]></title><description><![CDATA[<p dir="auto"><strong><img src="https://green-api.com/en/forum/assets/plugins/nodebb-plugin-emoji/emoji/android/1f464.png?v=bde451f7b76" class="not-responsive emoji emoji-android emoji--bust_in_silhouette" style="height:23px;width:auto;vertical-align:middle" title="👤" alt="👤" /> Author:</strong> AknurKh<br />
<strong><img src="https://green-api.com/en/forum/assets/plugins/nodebb-plugin-emoji/emoji/android/1f4ca.png?v=bde451f7b76" class="not-responsive emoji emoji-android emoji--bar_chart" style="height:23px;width:auto;vertical-align:middle" title="📊" alt="📊" /> Status:</strong> 🟢 Open<br />
<strong><img src="https://green-api.com/en/forum/assets/plugins/nodebb-plugin-emoji/emoji/android/1f3f7.png?v=bde451f7b76" class="not-responsive emoji emoji-android emoji--label" style="height:23px;width:auto;vertical-align:middle" title="🏷" alt="🏷" />️ Tags:</strong> <code>enhancement</code><br />
<strong><img src="https://green-api.com/en/forum/assets/plugins/nodebb-plugin-emoji/emoji/android/1f4c5.png?v=bde451f7b76" class="not-responsive emoji emoji-android emoji--date" style="height:23px;width:auto;vertical-align:middle" title="📅" alt="📅" /> Created at:</strong> 12.12.2024, 12:43:58<br />
<strong><img src="https://green-api.com/en/forum/assets/plugins/nodebb-plugin-emoji/emoji/android/1f504.png?v=bde451f7b76" class="not-responsive emoji emoji-android emoji--arrows_counterclockwise" style="height:23px;width:auto;vertical-align:middle" title="🔄" alt="🔄" /> Updated at:</strong> 15.12.2024, 15:00:41</p>
<hr />
<hr />
<p dir="auto"><strong>Required</strong><br />
Required a method to determine the number of chats and the number of messages in each chat, current account</p>
<p dir="auto"><strong>Level</strong><br />
API</p>
<p dir="auto"><strong>Workaround</strong></p>
<ol>
<li>To get the number of chats, use the <a href="https://green-api.com/en/docs/api/service/GetContacts/" rel="nofollow ugc">GetContacts</a> method and count the number of chats using the unique <strong>id</strong> field</li>
<li>To get the number of messages in each chat, use the <a href="https://green-api.com/en/docs/api/journals/GetChatHistory/" rel="nofollow ugc">GetChatHistory</a> method without the count parameter and count the number of messages using the unique <strong>idMessage</strong> field</li>
</ol>
<hr />
<p dir="auto"><a href="https://github.com/green-api/issues/issues/693" rel="nofollow ugc">Open on GitHub</a></p>
]]></description><link>https://green-api.com/en/forum/topic/191/required-a-method-to-get-the-number-of-chats-and-messages-in-a-chat</link><generator>RSS for Node</generator><lastBuildDate>Tue, 14 Jul 2026 01:15:20 GMT</lastBuildDate><atom:link href="https://green-api.com/en/forum/topic/191.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 24 Jun 2026 12:30:43 GMT</pubDate><ttl>60</ttl></channel></rss>