-
Notifications
You must be signed in to change notification settings - Fork 1
/
snsmenu.py
109 lines (106 loc) · 5.27 KB
/
snsmenu.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
from linebot.models import (
TemplateSendMessage, CarouselColumn, URIAction, CarouselTemplate, ImageCarouselTemplate,
PostbackAction, ImageCarouselColumn
)
def sns():
carousel_template_message = TemplateSendMessage(
alt_text="どこの様子を見に行こうか",
template=CarouselTemplate(
columns=[
CarouselColumn(
thumbnail_image_url='https://reiwacity-linebot.s3-ap-northeast-1.amazonaws.com/img_note.jpg',
title='note「令和市だより」',
text='もう説明は意味をなさなくなってきたけれど、行動の背景を知りたくなるときもあるよね',
actions=[
URIAction(
label='鑑賞しに行く',
uri='https://note.com/reiwacity/m/m5467a2ca46c6'
)
]
),
CarouselColumn(
thumbnail_image_url='https://reiwacity-linebot.s3-ap-northeast-1.amazonaws.com/marche.jpg',
title='令和市バーチャルマルシェ',
text='令和市のオンラインショップがオープンしたってよ。どんなグッズを作ってみようか',
actions=[
URIAction(
label='鑑賞しに行く',
uri='https://reiwacity.stores.jp/'
)
]
),
CarouselColumn(
thumbnail_image_url='https://reiwacity-linebot.s3-ap-northeast-1.amazonaws.com/img_twitter.jpg',
title='令和市twitter',
text='twitter上でも令和市の気配を感じたくなったらフォローしといて',
actions=[
URIAction(
label='鑑賞しに行く',
uri='https://twitter.com/ReiwaCityNews'
)
]
),
CarouselColumn(
thumbnail_image_url='https://reiwacity-linebot.s3-ap-northeast-1.amazonaws.com/img_college.jpg',
title='令和市民大学',
text='ありのままに見えている世界を共有したくなったらやっぱりここだな。誰かと話すっていいよね',
actions=[
URIAction(
label='鑑賞しに行く',
uri='https://peraichi.com/landing_pages/view/r-university'
)
]
),
CarouselColumn(
thumbnail_image_url='https://reiwacity-linebot.s3-ap-northeast-1.amazonaws.com/164805270_470119047735471_3970313014321092495_n.jpg',
title='ホームページ',
text='このHPってリモコンみたいだよね。記念日を入れたくなったらこちらへ',
actions=[
URIAction(
label='鑑賞しに行く',
uri='https://previewer.adalo.com/7e89d6b4-efb5-435c-8ea3-3822f4a7c5c0/'
)
]
)
]
)
)
return carousel_template_message
def callkusoyarou():
image_carousel_template_message =TemplateSendMessage(
alt_text='さっきそのあたりを散歩していたよ',
template=ImageCarouselTemplate(
columns=[
ImageCarouselColumn(
image_url='https://reiwacity-linebot.s3-ap-northeast-1.amazonaws.com/9D5BAC09-322C-43A7-8FD0-3A50B30E9791.jpeg',
action=PostbackAction(
label='話しかける',
display_text='おーいクソ野郎ちゃん',
data='kusoyarou'
)
),
ImageCarouselColumn(
image_url='https://reiwacity-linebot.s3-ap-northeast-1.amazonaws.com/175981664_298433741916520_1254296856856474412_n.jpg',
action=URIAction(
label='クソ野郎ちゃんに吐き出す',
uri='https://zealous-chandrasekhar-8fae19.netlify.app/'
)
),
ImageCarouselColumn(
image_url='https://reiwacity-linebot.s3-ap-northeast-1.amazonaws.com/B734762A-6EFC-479E-A94F-4851A1546677.jpeg',
action=URIAction(
label='noteを見に行く',
uri='https://note.com/_404_e_r_r_o_r_/m/m40a2ad85e1aa'
)
),
ImageCarouselColumn(
image_url='https://reiwacity-linebot.s3-ap-northeast-1.amazonaws.com/BF42A81F-CE29-40A9-864D-1D428D269CC8.jpeg',
action=URIAction(
label='twitterを見に行く',
uri='https://twitter.com/_404_e_r_r_o_r_'
)
),
]
)
)
return image_carousel_template_message