running
This commit is contained in:
parent
353d50953c
commit
234b5d84b9
1 changed files with 6 additions and 3 deletions
9
delme.py
9
delme.py
|
|
@ -6,7 +6,8 @@ mattermost = Driver({
|
|||
'url': 'chat.addwin.ir',
|
||||
# 'login_id': 'sahama',
|
||||
# 'password': settings.MATTERMOST_BASE_PUBLICE_URL,
|
||||
'token': settings.MATTERMOST_TOKEN,
|
||||
# 'token': settings.MATTERMOST_TOKEN,
|
||||
'token': 'x36shfdd5fnz3qm9ut7crb6xoh',
|
||||
|
||||
'scheme': 'https',
|
||||
'port': 443,
|
||||
|
|
@ -64,10 +65,12 @@ user_client.login()
|
|||
# print(user_client.users.get_user_by_username(username='newuser')) # jrrryzhq4bfftchoe1anji6a5c
|
||||
# print(user_client.users.get_user_by_username(username='newuser2')) # yy6ew7jy63dnb85ox6skgi969r
|
||||
# print(user_client.users.get_user_by_username(username='sahama')) # hqst9xib4typ7fynq3wn4qnzye
|
||||
print(user_client.channels.create_direct_message_channel(options=["jrrryzhq4bfftchoe1anji6a5c", "hqst9xib4typ7fynq3wn4qnzye"]))
|
||||
# print(user_client.users.get_user_by_username(username='ghasemi')) # w6ou8xyaqiyw5b8e3bhyae17xw
|
||||
print(user_client.channels.create_direct_message_channel(options=["jrrryzhq4bfftchoe1anji6a5c", "w6ou8xyaqiyw5b8e3bhyae17xw"]))
|
||||
# exit()
|
||||
|
||||
print(user_client.posts.create_post(options={
|
||||
"channel_id": "anth9sme4bn9tdantqxx1g4kky",
|
||||
"channel_id": "76xjniwh3jgdtmitk66nigtktr", # anth9sme4bn9tdantqxx1g4kky
|
||||
"message": "پیام از سمت پایتون"
|
||||
}))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue