Unable to "reply to channel message" via graph api

%3CLINGO-SUB%20id%3D%22lingo-sub-1886109%22%20slang%3D%22en-US%22%3EUnable%20to%20%22reply%20to%20channel%20message%22%20via%20graph%20api%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1886109%22%20slang%3D%22en-US%22%3E%3CP%3EI%20am%20unable%20to%20reply%20to%20a%20message%20with%20application%20permission.%20I%20have%20tried%20%22delegation%22%20as%20well%20but%20with%20the%20same%20results.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ETo%20use%20the%20delegation%2C%20do%20I%20need%20to%20reauthorize%20and%20get%20a%20new%20token%3F%3C%2FP%3E%3CP%3ECan%20I%20use%20the%20incoming%20webhook%20to%20reply%20to%20a%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fgraph%2Fapi%2Fchannel-post-messagereply%3Fview%3Dgraph-rest-1.0%26amp%3Btabs%3Dhttp%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fgraph%2Fapi%2Fchannel-post-messagereply%3Fview%3Dgraph-rest-1.0%26amp%3Btabs%3Dhttp%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1886109%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EChat%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EGuest%20Access%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMicrosoft%20Teams%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1889595%22%20slang%3D%22en-US%22%3ERe%3A%20Unable%20to%20%22reply%20to%20channel%20message%22%20via%20graph%20api%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1889595%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F868548%22%20target%3D%22_blank%22%3E%40sriatom%3C%2FA%3E%26nbsp%3B%2C%20You%20need%20to%20reauthorize%20and%20get%20a%20new%20token%20for%20delegation%20permission.%20In%20case%20of%20web%20hooks%2C%20you%20can't%20reply%20to%20specific%20message%20by%20using%20one.%20They%20are%20meant%20to%20post%20notification%20to%20user%20or%20channel%20but%20not%20to%20reply%20to%20specific%20message%20in%20conversation.%20Hope%20this%20helps.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

I am unable to reply to a message with application permission. I have tried "delegation" as well but with the same results.

 

To use the delegation, do I need to reauthorize and get a new token?

Can I use the incoming webhook to reply to a

 

https://docs.microsoft.com/en-us/graph/api/channel-post-messagereply?view=graph-rest-1.0&tabs=http

 

2 Replies

@sriatom , You need to reauthorize and get a new token for delegation permission. In case of web hooks, you can't reply to specific message by using one. They are meant to post notification to user or channel but not to reply to specific message in conversation. Hope this helps. 

@Manish-MSFT thanks Manish, this helps. Can I keep both the token and switch back and forth based on the request? 


For getting an user based authentication token, should I use this method?

https://docs.microsoft.com/en-us/graph/auth-v2-user

 

I am not a programmer, so if you can please give me some input on how to authenticate, it would help. i am currently using "ADAL" framework in python

context = adal.AuthenticationContext(
authority_url, validate_authority=TENENT_NAME != 'adfs',
)