using Kakaogame.SDK;
KGKakaoTalkGroupChat groupChat; // Group chatting room (KGKakaoTalkGroupChat object)
string templateId = "1677";
Dictionary<string, object> argumentDic = new Dictionary<string, object>() {
{"msg", "New Connection, New World"},
{"iphoneMarketParam", "test"},
{"iphoneExecParam", "test"},
{"sender_name", "iOSTester"}
};
KGKakaoTalkMessage.SendNewGroupChatMessage(
groupChat,
templateId,
argumentDic,
(result) => {
if (result.isSuccess) {
// Sending of KakaoTalk group chatting message successful.
}
else if (result.code == KGResultCode.MessageSettingDisabled) {
// If the receiver has set up message rejection
}
else if (result.code == KGResultCode.ExceedDailyUsage) {
// Occurs when the daily quota (regardless of receiver) of messages from a specific app that can be sent by a user has been exceeded
}
else if (result.code == KGResultCode.ExceedMonthlyUsage) {
// Occurs when the monthly quota of messages that a user can send to another specific user has been exceeded
}
else {
// Other errors
}
}); |