# Send Message Everyday

**URL:** <https://devforum.zoom.us/t/send-message-everyday/7684>\
**Category:** API and Webhooks\
**Created:** [January 24, 2020, 4:47pm UTC](https://devforum.zoom.us/t/send-message-everyday/7684 "2020-01-24T16:47:27Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![hassan1](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/hassan1/32/3028_2.png) [@hassan1](https://devforum.zoom.us/u/hassan1)\
**Post date:** [January 24, 2020, 4:47pm UTC](https://devforum.zoom.us/t/send-message-everyday/7684/1 "2020-01-24T16:47:27Z")

</div>

1. How to send a generic chat message. I want the Appname to send a message.
2. How to get channelid  
I am trying to build an integration which sends a message at 9am everyday to a group of ‘Developers’

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [January 24, 2020, 5:27pm UTC](https://devforum.zoom.us/t/send-message-everyday/7684/2 "2020-01-24T17:27:36Z")

</div>

Hey @hassan1, thanks for posting and using Zoom!

> [@hassan1](#):
>
> How to send a generic chat message. I want the Appname to send a message.

You can send [chat messages](https://marketplace.zoom.us/docs/api-reference/zoom-api/chat-messages/sendachatmessage) or [Chatbot messages](https://marketplace.zoom.us/docs/api-reference/zoom-api/chatbot-messages/sendchatbot). I would suggest Chatbot messages.

> [@hassan1](#):
>
> How to get channelid  
> I am trying to build an integration which sends a message at 9am everyday to a group of ‘Developers’

You can get Channel ID in a few ways. [Get Users Channels](https://marketplace.zoom.us/docs/api-reference/zoom-api/chat-channels/getchannels) or the easiest way in my opinion is via a [Slash Command Webhook](https://marketplace.zoom.us/docs/api-reference/webhook-reference/chatbot-events/user-commands). The Channel ID is the part before the @ on the `toJid`.

Let me know if that helps!

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![hassan1](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/hassan1/32/3028_2.png) [@hassan1](https://devforum.zoom.us/u/hassan1)\
**Post date:** [January 24, 2020, 5:57pm UTC](https://devforum.zoom.us/t/send-message-everyday/7684/3 "2020-01-24T17:57:31Z")

</div>

Hi,

Thanks for the help. I saw both these options in the API but i still dont understand how.

1. Chat messages are to be sent by a +user+ with a user\_id, how can i send it via a backend app using JWT Tokens?

2. If I went via chatbot approach (which i don’t want to, since it’s not really a bot), then yes, i understand how to send a message to a jid

3. Get Users Channels again requires userid to get the channels ‘of a user’. How can I find all the channels of all the users (to find the id of a specific one).

4. The slash command is useless for me here since I want to send a message without being invoked. Just once, everyday.

Please let me know your thoughts.

regards,  
Hassan

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [January 24, 2020, 6:31pm UTC](https://devforum.zoom.us/t/send-message-everyday/7684/4 "2020-01-24T18:31:13Z")

</div>

Hey @hassan1,

> [@hassan1](#):
>
> hat messages are to be sent by a +user+ with a user\_id, how can i send it via a backend app using JWT Tokens?

Chat Messages can only be sent with an OAuth user level app.

To send via a backend app, you’d want to use a Chatbot and the [simple Chatbot Auth Flow](https://marketplace.zoom.us/docs/guides/chatbots/authorization). Chatbot auth requires no user interaction or database after the Chatbot has been installed. [See refreshing a Chatbot Token.](https://marketplace.zoom.us/docs/guides/chatbots/authorization#refresh-access-token)

> [@hassan1](#):
>
> - If I went via chatbot approach (which i don’t want to, since it’s not really a bot), then yes, i understand how to send a message to a jid

I would suggest using a Chatbot for this. Even if it just sends notifications.

> [@hassan1](#):
>
> Get Users Channels again requires userid to get the channels ‘of a user’. How can I find all the channels of all the users (to find the id of a specific one).

Right now the Chat Channels APIs are user level and require a user ID. However we are releasing Account Level Chat Channel APIs soon that will make this process easier.

> [@hassan1](#):
>
> The slash command is useless for me here since I want to send a message without being invoked. Just once, everyday.

I understand, I was just saying that receiving a Chatbot Slash Command Webhook is an easy way to get the information about a Channel with a single Zoom Chatbot App (rather than having to create a User Level OAuth app to call the Get Chat Channels API).

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![hassan1](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/hassan1/32/3028_2.png) [@hassan1](https://devforum.zoom.us/u/hassan1)\
**Post date:** [January 24, 2020, 6:47pm UTC](https://devforum.zoom.us/t/send-message-everyday/7684/5 "2020-01-24T18:47:38Z")

</div>

This is helpful, thanks. I would look into making it a chatbot.

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [January 24, 2020, 7:10pm UTC](https://devforum.zoom.us/t/send-message-everyday/7684/6 "2020-01-24T19:10:25Z")

</div>

Happy to help!

Here is a Zero to Hero tutorial to help you get started: [https://marketplace.zoom.us/docs/guides/chatbots/build-a-chatbot](https://marketplace.zoom.us/docs/guides/chatbots/build-a-chatbot)

Let me know if you have additional questions!

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![hassan1](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/hassan1/32/3028_2.png) [@hassan1](https://devforum.zoom.us/u/hassan1)\
**Post date:** [January 26, 2020, 11:52pm UTC](https://devforum.zoom.us/t/send-message-everyday/7684/7 "2020-01-26T23:52:00Z")

</div>

I did all that, but it’s one problem after another.

1. I have an app in test phase but when i try to get the access token, it keeps giving me ‘invalid client\_id or client\_secret’. I have checked and double checked base64encode(client\_id:client\_secret). I have installed and reinstalled the authorize part from the Local Testing part.

2. The slash command and messages to the bot’s window sends to the requesturl endpoint with POST … but the params are empty.

Any ideas for both these issues?

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [January 27, 2020, 4:55pm UTC](https://devforum.zoom.us/t/send-message-everyday/7684/8 "2020-01-27T16:55:03Z")

</div>

Hey @hassan1,

Can you schedule a meeting with me so I can better assist?

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![hassan1](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/hassan1/32/3028_2.png) [@hassan1](https://devforum.zoom.us/u/hassan1)\
**Post date:** [January 27, 2020, 5:30pm UTC](https://devforum.zoom.us/t/send-message-everyday/7684/9 "2020-01-27T17:30:20Z")

</div>

Hi,

Yes that would be perfect. I am in GMT timezone. Ideal would be between 11am and 5pm GMT.

Let know what works

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [January 27, 2020, 9:32pm UTC](https://devforum.zoom.us/t/send-message-everyday/7684/10 "2020-01-27T21:32:30Z")

</div>

Hey @hassan1,

Go ahead and schedule for 4pm or 5pm GMT:

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![DeveloperBot](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/developerbot/32/12632_2.png) [@DeveloperBot](https://devforum.zoom.us/u/DeveloperBot)\
**Post date:** [August 21, 2020, 7:13pm UTC](https://devforum.zoom.us/t/send-message-everyday/7684/11 "2020-08-21T19:13:12Z")

</div>


