feat(telegram-bot): add authentication support
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
import { IGlobalVariable } from '@automatisch/types';
|
||||
|
||||
const verifyCredentials = async ($: IGlobalVariable) => {
|
||||
const { data } = await $.http.get('/getMe');
|
||||
const { result: me } = data;
|
||||
|
||||
await $.auth.set({
|
||||
screenName: me.first_name,
|
||||
});
|
||||
};
|
||||
|
||||
export default verifyCredentials;
|
Reference in New Issue
Block a user