Slack API Tutorial: Post Slack Messages Using Python!

  Рет қаралды 59,950

Tech and Beyond With Moss

Tech and Beyond With Moss

Күн бұрын

Пікірлер: 74
@type2academy
@type2academy 2 жыл бұрын
Your tutorials are awesome, thank you! It's great that they're super clear and concise.
@tech_with_moss
@tech_with_moss 2 жыл бұрын
Thanks a lot for the feedback! I'm glad to hear they're helpful.
@gregroschel3278
@gregroschel3278 2 жыл бұрын
This is the best, clearest, easiest-to-follow Video in the Universe! Thank you.
@tech_with_moss
@tech_with_moss 2 жыл бұрын
I'm glad to hear that. Thanks!
@carlossaldana8301
@carlossaldana8301 3 жыл бұрын
You are amazing bro! This helped me so much at work. I didn't have any idea how to start. Thank you
@tech_with_moss
@tech_with_moss 3 жыл бұрын
Thank you! I really appreciate that.
@Shawn-cr8ep
@Shawn-cr8ep 3 жыл бұрын
Worked for me, thanks so much! I'm using this to send notifications to my phone (slack app), the possibilities are endless, from custom weather alerts to investment/trading notifications
@patrickmaloney4125
@patrickmaloney4125 Жыл бұрын
Works like a charm! After I cleaned up a few typos...ugghh. Thanks for the great tutorial!
@tech_with_moss
@tech_with_moss Жыл бұрын
I'm glad it was helfpul!
@chrisshore5340
@chrisshore5340 2 жыл бұрын
This video just saved me SO MUCH TIME! Thanks!
@crazyhorse62166
@crazyhorse62166 3 жыл бұрын
Excellent video to teach quick start to using slack api and alert app creation
@crazyhorse62166
@crazyhorse62166 3 жыл бұрын
I am getting "Invalid_payload" using similar code? any ideas? using python 3.9.5.
@rewild.rewire
@rewild.rewire 2 жыл бұрын
Thank you so much! Very clear and easy to follow. Got it working the first try
@thej1091
@thej1091 3 жыл бұрын
Amazing tutorial! my G!. Got me through an interview! :)
@tech_with_moss
@tech_with_moss 3 жыл бұрын
That's awesome! I'm very glad that it helped.
@ezermello3877
@ezermello3877 2 жыл бұрын
thanks man! This tutorial helped so much !!
@RR__95__RR
@RR__95__RR 2 жыл бұрын
Thank you for the tutorial, great work.
@myothercarisadelorean8957
@myothercarisadelorean8957 2 жыл бұрын
We use Service Now and Slack at my company. Is it possible to create slack commands to pull the basic information from a Service Now ticket into a slack channel? Example: If I created /getTicket and it would then go out to the Service Now ticket and pull into the channel the ticket title, description, priority color, created date, etc etc.
@vipinmon
@vipinmon 3 жыл бұрын
How do you send messages to an individual slack instead of a slack channel using the bash command line?
@alina_yurenko
@alina_yurenko 3 жыл бұрын
This is a great tutorial, thank you for sharing it:)
@michaelelleby1371
@michaelelleby1371 3 жыл бұрын
Very good video.. I was looking at this today, as I am looking at firing the script from within an AWS lambda to get to an external slack channel..
@ganeshdeshmukh8020
@ganeshdeshmukh8020 3 жыл бұрын
Thanks for the video and ideas at the start.
@thewebproject
@thewebproject 11 ай бұрын
hi, how about vise versa where I want to receive post from specific channel to my web app or website? Is it possible?
@lancebyrd6871
@lancebyrd6871 3 жыл бұрын
This was helpful. Thank you.
@karthikeyanarumugam8793
@karthikeyanarumugam8793 3 жыл бұрын
Wonderfull explanation. Thank you so much
@tech_with_moss
@tech_with_moss 3 жыл бұрын
No problem!
@anasalraddadi9455
@anasalraddadi9455 3 жыл бұрын
Hi Thank you for the video I kinda want to do the same app you mentioned at first that monitor a system and sends crash rates. Any idea how can I do that?
@mohammadshohag604
@mohammadshohag604 2 жыл бұрын
do you have video on how to get messages of a slack channel
@ahsanarshad2867
@ahsanarshad2867 2 жыл бұрын
amazing its very helpful for me thanks a lot.. can u tell me how can I send a post message from logged in user ID?? In this case its sending from our app name..
@TheScoobysteve
@TheScoobysteve 3 жыл бұрын
Subbed - super helpful, thanks!
@subhamshaw6509
@subhamshaw6509 2 жыл бұрын
How to implement a command in xsoar to find the current status (offline/online) of slack user
@MrNkaliape
@MrNkaliape 3 жыл бұрын
can we send response to the incoming msg? one more qn: your script didnt cover on authentication? does free version of slack allow this?
@erickmanuelbazansalinas9705
@erickmanuelbazansalinas9705 4 жыл бұрын
great video, thanks a lot!
@navneethravikumar1860
@navneethravikumar1860 Жыл бұрын
Can we mention/tag someone in a slack channel using the python script?
@yogitagupta4674
@yogitagupta4674 4 жыл бұрын
Hi, thanks for the video. I've created a slack app that posts open SNOW tickets, i want to add the functionality which shows the live status of the ticket . Like when the message is posted, the ticket is in "open" state and when someone resolves it later , i want it to get updated to "Resolved". I saw this feature in PagerDuty slack app. Please help
@judithmishelparedesartica1832
@judithmishelparedesartica1832 4 жыл бұрын
thank you. It was a good video , helps me a lot.
@sumanchaubey3872
@sumanchaubey3872 3 жыл бұрын
Hey can we send multiples files (let say three images)via slack bot using python script.If yes please make a video on it ...thanks in advance
@skippytvownerkrishnamurthy9947
@skippytvownerkrishnamurthy9947 2 жыл бұрын
q1.I fixed the correct code but not pops-up in slack message automatically ,cos of my Terminal is not Responding as OK! and its why? q2. i'm using python for slack messages and slack app should be integrated with Make i.e., integromat to trigger automation workflows/scenarios from OBS, Can I Use Python to Connect OBS Studio With Any App Using Integromat / Zapier ?
@shubhamjha5738
@shubhamjha5738 3 жыл бұрын
how can i logout another team member or delete his account as a sso/admin, may be when he had left the organisation. Means how to automate this thing
@tech100sec
@tech100sec 2 жыл бұрын
How can I send file/attachments with messages?
@javitv454
@javitv454 3 жыл бұрын
Hey, any way to also send images ? I saw ways to send urls but can I directly send a file ?
@tech_with_moss
@tech_with_moss 3 жыл бұрын
Hi Javier! Yes, it is possible to send files via the API. Here is some documentation for uploading a file: api.slack.com/methods/files.upload/code
@vinnythep00h
@vinnythep00h Жыл бұрын
Thanks for this!
@rampalchauhan5551
@rampalchauhan5551 3 жыл бұрын
Good Video and thanks - but the code could have been to the point. adding argument passing from command line made the otherwise simple code complex
@kalyanishete9532
@kalyanishete9532 2 жыл бұрын
How to fetch status of an user from slack sdk?? Can anyone tell
@kiavashvani6310
@kiavashvani6310 3 жыл бұрын
Make a video showing how to delete a particular message sent with the API
@AndyD89
@AndyD89 3 жыл бұрын
Great video! Could you show us how to do this with Google Chat instead? That would be amazing!
@tech_with_moss
@tech_with_moss 3 жыл бұрын
Thanks for the suggestion! I'll consider doing this for a future video. I'd have to research the Google Chat API.
@sistemasautoluz7584
@sistemasautoluz7584 3 жыл бұрын
how the use whit php in the web page
@rupenanjaria
@rupenanjaria 2 жыл бұрын
I believe that Webhooks are outdated and Slack can discontinue it anytime. Any video on consuming Slack's REST API?
@netdevgamer
@netdevgamer 3 жыл бұрын
Thanks this helped me
@dskitchen1386
@dskitchen1386 3 жыл бұрын
How to send content of file using webhook over slack?
@tech_with_moss
@tech_with_moss 3 жыл бұрын
In my most recent video I cover this topic but using Golang instead of python
@colleenblase7780
@colleenblase7780 4 жыл бұрын
Hi, how can I recover the past messages at slack?
@tech_with_moss
@tech_with_moss 4 жыл бұрын
Hello! I apologize I'm not entirely sure how to do this. I believe it depends on the plan that you have with slack though.
@denieltabirara1010
@denieltabirara1010 4 жыл бұрын
Hi can I my account do the auto reply instead of bot?
@tech_with_moss
@tech_with_moss 4 жыл бұрын
Hello! Apparently it is possible to "impersonate" a user: api.slack.com/messaging/sending#impersonation See the "sending message as other entities" section
@usmanmaqbool7758
@usmanmaqbool7758 4 жыл бұрын
hello ! can we post file with same script ?
@tech_with_moss
@tech_with_moss 4 жыл бұрын
Hi Usman! You could use most of the same script but with some modifications. Specifically, you'll want to utilize the following Slack API endpoint to upload a file (Documentation here): api.slack.com/methods/files.upload
@usmanmaqbool7758
@usmanmaqbool7758 4 жыл бұрын
@@tech_with_moss Thank You
@maxrobotics3703
@maxrobotics3703 4 жыл бұрын
hello, i am getting invalid payload in pycharm when i run it. plz help
@tech_with_moss
@tech_with_moss 4 жыл бұрын
Hello! Be sure to check that you're entering an argument at the command line and that the argument provided with the "-m" option is given in quotes. After grabbing the argument from the command line, you may want to print it out just to validate that you've saved it to a variable correctly. Also, if you use the "Play" button in pycharm to run the script, it won't run it with any options or arguments, so you would get a null value for your argument. Not sure if you're running it via the terminal or via the play button but I would also check that. If you confirm that you've done this and it's still not working, you could share your code here and the command you're using to run it and I can take a look!
@ganeshdeshmukh8020
@ganeshdeshmukh8020 3 жыл бұрын
@@tech_with_moss oh wow man, you are really engaged with the audiance.
@tech_with_moss
@tech_with_moss 3 жыл бұрын
@@ganeshdeshmukh8020 thank you! I try to be as much as time permits.
@mohammedajmal5009
@mohammedajmal5009 4 жыл бұрын
hello, how to get slack messages using python? like a chatbot.
@tech_with_moss
@tech_with_moss 4 жыл бұрын
Hi! I believe what you're looking for is this: api.slack.com/authentication/basics This documentation outlines how to create an app that will respond to users who invoke the bot-user commands. The legacy version of this documentation was here api.slack.com/bot-users, which discusses the process of creating a "bot-user" which is now replaced by the first link that I shared
@DakshGargas
@DakshGargas Жыл бұрын
Thanks! :D
@jk19988
@jk19988 4 жыл бұрын
How to mention a user using python in a slack channel?
@tech_with_moss
@tech_with_moss 4 жыл бұрын
Although I don't have the python code, I believe the formatting you're looking for is documented on this page! api.slack.com/reference/surfaces/formatting#mentioning-users
@jk19988
@jk19988 4 жыл бұрын
@@tech_with_moss thanks:)
@AshutoshKumar-xz9hs
@AshutoshKumar-xz9hs 3 жыл бұрын
Save my day
@mcring543
@mcring543 4 жыл бұрын
Send in a blank message. I would show help on a blank message and exit. But that's just me.
@tech_with_moss
@tech_with_moss 4 жыл бұрын
I agree, I definitely think that would be a good improvement to the program. No use in sending a blank message.
@yaniaular
@yaniaular 3 жыл бұрын
GRACIAS!!!!!!!!!!!!!
What is Version Control in Software Development? Simply Explained
13:17
Tech and Beyond With Moss
Рет қаралды 4,7 М.
Python Slack Bot Tutorial #2 - Handling Events (Events API)
20:40
Tech With Tim
Рет қаралды 85 М.
Quando eu quero Sushi (sem desperdiçar) 🍣
00:26
Los Wagners
Рет қаралды 15 МЛН
How to treat Acne💉
00:31
ISSEI / いっせい
Рет қаралды 108 МЛН
小丑女COCO的审判。#天使 #小丑 #超人不会飞
00:53
超人不会飞
Рет қаралды 16 МЛН
Send Message to Slack with a Node.js Script
12:37
Sean C Davis
Рет қаралды 9 М.
Building Slack AI Assistants with Python & LangChain
28:31
Dave Ebbelaar
Рет қаралды 38 М.
Posting messages to Slack using Java (Test Automation)
20:51
Jiten Automation Lab
Рет қаралды 7 М.
Request API data using Python in 8 minutes! ↩️
8:34
Bro Code
Рет қаралды 41 М.
How to Build a Slack Bot
16:59
Techno Tim
Рет қаралды 43 М.
Building Slack bot in Python
3:51:36
Calvin Remsburg
Рет қаралды 6 М.
‘The Five’ reacts to devastating wildfires in LA County
12:22
Send Emails With Python [UPDATED]
11:33
Code With Tomi
Рет қаралды 51 М.
Quando eu quero Sushi (sem desperdiçar) 🍣
00:26
Los Wagners
Рет қаралды 15 МЛН