2
0
mirror of https://github.com/ars3niy/tdlib-purple synced 2025-08-31 05:55:08 +00:00
Files
tdlib-purple/chat-info.h

24 lines
629 B
C
Raw Normal View History

#ifndef _CHAT_INFO_H
#define _CHAT_INFO_H
#include <purple.h>
#include <td/telegram/td_api.h>
static constexpr int
GROUP_TYPE_BASIC = 1,
GROUP_TYPE_SUPER = 2,
GROUP_TYPE_CHANNEL = 3;
GList *getChatJoinInfo();
std::string getChatName(const td::td_api::chat &chat);
GHashTable *getChatComponents(const td::td_api::chat &chat);
const char *getChatName(GHashTable *components);
2020-05-12 19:37:59 +02:00
const char *getChatInviteLink(GHashTable *components);
const char *getChatGroupName(GHashTable *components);
int getChatGroupType(GHashTable *components);
int64_t getTdlibChatId(const char *chatName);
#endif