@@ -72,7 +72,7 @@ def set_notion_api_key(update, context):
72
72
73
73
session .commit ()
74
74
75
- update .message .reply_text ('✔️ Notion API key set.' , reply_markup = keyboard )
75
+ update .message .reply_text ('✓ Notion API key set.' , reply_markup = keyboard )
76
76
77
77
setclient (update , context , user )
78
78
@@ -85,9 +85,9 @@ def setclient(update, context, user):
85
85
86
86
try :
87
87
context .user_data ['notion_client' ] = NotionClient (token_v2 = user .notion_api_key )
88
- update .message .reply_text ('✔️ Notion client set!' , reply_markup = keyboard )
88
+ update .message .reply_text ('✓ Notion client set!' , reply_markup = keyboard )
89
89
except Exception as e :
90
- update .message .reply_text (f'❌ Error while setting Notion client: { e } ' , reply_markup = keyboard )
90
+ update .message .reply_text (f'☢ Error while setting Notion client: { e } ' , reply_markup = keyboard )
91
91
92
92
return ConversationHandler .END
93
93
@@ -97,17 +97,17 @@ def check_client(update, context):
97
97
user = session .query (User ).filter (User .username == username ).first ()
98
98
99
99
if user .notion_api_key :
100
- update .message .reply_text ('✔️ Notion API key set!' , reply_markup = keyboard )
100
+ update .message .reply_text ('✓ Notion API key set!' , reply_markup = keyboard )
101
101
102
102
if not user .notion_api_key :
103
- update .message .reply_text ('❌ Notion API key not set.' , reply_markup = keyboard )
103
+ update .message .reply_text ('☢ Notion API key not set.' , reply_markup = keyboard )
104
104
ask_notion_api_key (update , context )
105
105
106
106
if context .user_data .get ('notion_client' ):
107
- update .message .reply_text ('✔️ Notion client set!' , reply_markup = keyboard )
107
+ update .message .reply_text ('✓ Notion client set!' , reply_markup = keyboard )
108
108
109
109
if not context .user_data .get ('notion_client' ):
110
- update .message .reply_text ('❌ Notion client not set.' , reply_markup = keyboard )
110
+ update .message .reply_text ('☢ Notion client not set.' , reply_markup = keyboard )
111
111
setclient (update , context , user )
112
112
113
113
return ConversationHandler .END
@@ -133,7 +133,7 @@ def set_page_address(update, context):
133
133
update .message .reply_text (f'page adress set to { page_address } .' )
134
134
135
135
except Exception as e :
136
- update .message .reply_text (f'❌ error while setting page adress: { e } ' , reply_markup = keyboard )
136
+ update .message .reply_text (f'☢ error while setting page adress: { e } ' , reply_markup = keyboard )
137
137
138
138
connect_to_page (update , context , user , user .page_address )
139
139
@@ -154,10 +154,10 @@ def connect_to_page(update, context, user, page_address):
154
154
155
155
session .commit ()
156
156
157
- update .message .reply_text (f'✔️ connected to page { user .page_title } !' )
157
+ update .message .reply_text (f'✓ connected to page { user .page_title } !' )
158
158
159
159
except Exception as e :
160
- update .message .reply_text (f'❌ error while connecting to page: { e } ' , reply_markup = keyboard )
160
+ update .message .reply_text (f'☢ error while connecting to page: { e } ' , reply_markup = keyboard )
161
161
# если это не сделать, он уйдет в бесконечное 'page set to'!
162
162
return ConversationHandler .END
163
163
@@ -167,17 +167,17 @@ def check_page(update, context):
167
167
user = session .query (User ).filter (User .username == username ).first ()
168
168
169
169
if user .page_address :
170
- update .message .reply_text (f'✔️ page address set.' , reply_markup = keyboard )
170
+ update .message .reply_text (f'✓ page address set.' , reply_markup = keyboard )
171
171
172
172
if not user .page_address :
173
- update .message .reply_text ('❌ page address not set.' , reply_markup = keyboard )
173
+ update .message .reply_text ('☢ page address not set.' , reply_markup = keyboard )
174
174
askpage (update , context )
175
175
176
176
if context .user_data .get ('page' ):
177
- update .message .reply_text (f'✔️ connected to page { user .page_title } .' , reply_markup = keyboard )
177
+ update .message .reply_text (f'✓ connected to page { user .page_title } .' , reply_markup = keyboard )
178
178
179
179
if not context .user_data .get ('page' ):
180
- update .message .reply_text ('❌ page not connected.' , reply_markup = keyboard )
180
+ update .message .reply_text ('☢ page not connected.' , reply_markup = keyboard )
181
181
connect_to_page (update , context , user , user .page_address )
182
182
183
183
return ConversationHandler .END
@@ -193,7 +193,7 @@ def send_text_to_notion(update, context):
193
193
newblock = page .children .add_new (TextBlock , title = text )
194
194
update .message .reply_text (f'Sent text to { user .page_title } .' , reply_markup = keyboard )
195
195
except Exception as e :
196
- update .message .reply_text (f'❌ Error while sending text to Notion: { e } ' , reply_markup = keyboard )
196
+ update .message .reply_text (f'☢ Error while sending text to Notion: { e } ' , reply_markup = keyboard )
197
197
198
198
return ConversationHandler .END
199
199
0 commit comments